From 7a93d24aeffdb42f72054d9467931ef70c784908 Mon Sep 17 00:00:00 2001 From: Markus Schabel Date: Tue, 17 Nov 2015 12:02:40 +0100 Subject: [PATCH] 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. --- examples/InverseDynamics/InverseDynamicsExample.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/InverseDynamics/InverseDynamicsExample.cpp b/examples/InverseDynamics/InverseDynamicsExample.cpp index 8b67ccfba..9548d8591 100644 --- a/examples/InverseDynamics/InverseDynamicsExample.cpp +++ b/examples/InverseDynamics/InverseDynamicsExample.cpp @@ -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;