Merge pull request #839 from erwincoumans/master

fix r2d2.urdf and avoid self-penetrating limbs
This commit is contained in:
erwincoumans 2016-10-20 14:36:05 -07:00 committed by GitHub
commit 8c140fcc8a
4 changed files with 12 additions and 16 deletions

View File

@ -11,7 +11,7 @@
</visual>
<collision>
<geometry>
<cylinder length="0.6" radius="0.2"/>
<cylinder length="0.6" radius="0.17"/>
</geometry>
</collision>
<inertial>
@ -266,7 +266,7 @@
<joint name="left_gripper_joint" type="revolute">
<axis xyz="0 0 1"/>
<limit effort="1000.0" lower="0.0" upper="0.548" velocity="0.5"/>
<origin rpy="0 0 0" xyz="0.2 0.01 0"/>
<origin rpy="0 0 0" xyz="0.2 0.02 0"/>
<parent link="gripper_pole"/>
<child link="left_gripper"/>
</joint>
@ -317,7 +317,7 @@
<joint name="right_gripper_joint" type="revolute">
<axis xyz="0 0 -1"/>
<limit effort="1000.0" lower="0.0" upper="0.548" velocity="0.5"/>
<origin rpy="0 0 0" xyz="0.2 -0.01 0"/>
<origin rpy="0 0 0" xyz="0.2 -0.02 0"/>
<parent link="gripper_pole"/>
<child link="right_gripper"/>
</joint>
@ -368,13 +368,13 @@
<link name="head">
<visual>
<geometry>
<sphere radius="0.2"/>
<sphere radius="0.16"/>
</geometry>
<material name="white"/>
</visual>
<collision>
<geometry>
<sphere radius="0.2"/>
<sphere radius="0.16"/>
</geometry>
</collision>
<inertial>
@ -412,7 +412,7 @@
<joint name="tobox" type="fixed">
<parent link="head"/>
<child link="box"/>
<origin xyz="0 0.1414 0.1414"/>
<origin xyz="0 0.1214 0.1214"/>
</joint>
</robot>

View File

@ -3,6 +3,7 @@
struct CommonCameraInterface
{
virtual ~CommonCameraInterface(){}
virtual void getCameraProjectionMatrix(float m[16])const = 0;
virtual void getCameraViewMatrix(float m[16]) const = 0;

View File

@ -19,6 +19,7 @@ enum
struct CommonRenderInterface
{
virtual ~CommonRenderInterface() {}
virtual void init()=0;
virtual void updateCamera(int upAxis)=0;
virtual void removeAllInstances() = 0;

View File

@ -15,7 +15,7 @@ subject to the following restrictions:
#include "PhysicsServerExample.h"
#include "PhysicsClientExample.h"
#include "Bullet3Common/b3CommandLineArgs.h"
#include "../CommonInterfaces/CommonExampleInterface.h"
@ -73,16 +73,10 @@ int main(int argc, char* argv[])
args.GetCmdLineArgument("shared_memory_key", gSharedMemoryKey);
if (args.CheckCmdLineFlag("client"))
{
example = (SharedMemoryCommon*)PhysicsClientCreateFunc(options);
}else
{
// options.m_option |= PHYSICS_SERVER_ENABLE_COMMAND_LOGGING;
// options.m_option |= PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG;
// options.m_option |= PHYSICS_SERVER_ENABLE_COMMAND_LOGGING;
// options.m_option |= PHYSICS_SERVER_REPLAY_FROM_COMMAND_LOG;
example = (SharedMemoryCommon*)PhysicsServerCreateFunc(options);
}
example = (SharedMemoryCommon*)PhysicsServerCreateFunc(options);
example->initPhysics();