fix compile issues due to API change (additional argument)
This commit is contained in:
@@ -44,7 +44,7 @@ public:
|
|||||||
void init() {
|
void init() {
|
||||||
this->createEmptyDynamicsWorld();
|
this->createEmptyDynamicsWorld();
|
||||||
m_dynamicsWorld->setGravity(m_gravity);
|
m_dynamicsWorld->setGravity(m_gravity);
|
||||||
BulletURDFImporter urdf_importer(&m_nogfx,0);
|
BulletURDFImporter urdf_importer(&m_nogfx,0,1);
|
||||||
URDFImporterInterface &u2b(urdf_importer);
|
URDFImporterInterface &u2b(urdf_importer);
|
||||||
bool loadOk = u2b.loadURDF(m_filename.c_str(), m_base_fixed);
|
bool loadOk = u2b.loadURDF(m_filename.c_str(), m_base_fixed);
|
||||||
|
|
||||||
|
|||||||
@@ -129,9 +129,20 @@ bool b3RobotSimulatorClientAPI::connect(int mode, const std::string& hostName, i
|
|||||||
int argc = 0;
|
int argc = 0;
|
||||||
char* argv[1] = {0};
|
char* argv[1] = {0};
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv);
|
sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv,1);
|
||||||
#else
|
#else
|
||||||
sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv);
|
sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv,1);
|
||||||
|
#endif
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
case eCONNECT_GUI_SERVER:
|
||||||
|
{
|
||||||
|
int argc = 0;
|
||||||
|
char* argv[1] = {0};
|
||||||
|
#ifdef __APPLE__
|
||||||
|
sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc, argv,0);
|
||||||
|
#else
|
||||||
|
sm = b3CreateInProcessPhysicsServerAndConnect(argc, argv,0);
|
||||||
#endif
|
#endif
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -335,9 +335,9 @@ int main(int argc, char* argv[])
|
|||||||
#ifdef PHYSICS_IN_PROCESS_EXAMPLE_BROWSER
|
#ifdef PHYSICS_IN_PROCESS_EXAMPLE_BROWSER
|
||||||
|
|
||||||
#ifdef __APPLE__
|
#ifdef __APPLE__
|
||||||
b3PhysicsClientHandle sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc,argv);
|
b3PhysicsClientHandle sm = b3CreateInProcessPhysicsServerAndConnectMainThread(argc,argv,1);
|
||||||
#else
|
#else
|
||||||
b3PhysicsClientHandle sm = b3CreateInProcessPhysicsServerAndConnect(argc,argv);
|
b3PhysicsClientHandle sm = b3CreateInProcessPhysicsServerAndConnect(argc,argv,1);
|
||||||
#endif //__APPLE__
|
#endif //__APPLE__
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user