Updated include and variadic argument [xcode]

InverseDynamics example:
* fixed the include path of the /Utils/b3ResourcePath.h file so that the
  example compiles in xcode.
* converted std:string to c-string to be used as variadic argument, so that
  the example compilse in xcode.
This commit is contained in:
Markus Schabel
2015-11-17 12:02:40 +01:00
parent 571a6ba9c4
commit 7a93d24aef

View File

@@ -19,7 +19,7 @@ subject to the following restrictions:
#include "BulletDynamics/Featherstone/btMultiBodyJointMotor.h"
#include "BulletDynamics/Featherstone/btMultiBodyDynamicsWorld.h"
#include "../CommonInterfaces/CommonParameterInterface.h"
#include "../../Utils/b3ResourcePath.h"
#include "../Utils/b3ResourcePath.h"
#include "../Importers/ImportURDFDemo/BulletUrdfImporter.h"
#include "../Importers/ImportURDFDemo/URDF2Bullet.h"
#include "../Importers/ImportURDFDemo/MyMultiBodyCreator.h"
@@ -129,7 +129,7 @@ void InverseDynamicsExample::initPhysics()
//temporarily set some extreme damping factors until we have some joint control or constraints
m_multiBody->setAngularDamping(0.99);
m_multiBody->setLinearDamping(0.99);
b3Printf("Root link name = %s",u2b.getLinkName(u2b.getRootLinkIndex()));
b3Printf("Root link name = %s",u2b.getLinkName(u2b.getRootLinkIndex()).c_str());
}
}
break;