PositronicsLab / Moby

The Moby rigid body dynamics simulator
34 stars 13 forks source link

Struggling with compatibility between Moby and Ravellin, and Openrave #11

Open aprath1 opened 3 years ago

aprath1 commented 3 years ago

Hello, Could any one please help to let me know which branch or commit head of Ravelin is compatible with the Moby-openrave branch? I am trying different Ravelin branches and commit heads... Ravelin builds always but then the Moby-openrave branch is throwing errors like: Build error: Moby/include/Moby/Joint.h:60:69: error: reference 'shared_from_this' ambiguous (related files ArticulatedBody.h, Joint.h, RCArticulatedBody.h) JointPtr get_this() { return boost::dynamic_pointer_cast(shared_from_this()); } ^ In file included from /usr/include/boost/enable_shared_from_this.hpp:16:0, from /usr/local/include/Ravelin/Origin3f.h:13, from /usr/local/include/Ravelin/Vector3f.h:17, from /usr/local/include/Ravelin/Constants.h:12, from /usr/local/include/Ravelin/LinAlgd.h:15, from /home/repos/Moby/src/SustainedUnilateralConstraintHandler.cpp:9:

I tried using a virual pointer like in ravelin, still the error is not solved: DynamicBody.h:14:60: error: expected template-name before ‘<’ token DynamicBody.h:14:60: error: expected unqualified-id before ‘<’ token SustainedUnilateralConstraintHandler.cpp.o failed to build

edrumwri commented 3 years ago

Moby is not being maintained at the present time. I expect that an older version of g++ should be able to resolve the compilation error though, or, at least a bit of finagling with a newer g++: boost::shared_ptr needs to be swapped out with std::shared_ptr.