motion_analysis_mocap fails to build
Hello all
I just made my first foray into ros a few days ago. I am now trying to install the motion_analysis_mocap stack. I'm installing it from source in my overlay (since I can't seem to find any other way to do it). I do this like so:
roslocate info motion_analysis_mocap > motion_analysis_mocap.rosinstall
rosinstall <myrosoverlaydir> motion_analysis_mocap.rosinstall
this seems to work fine, but the 'documentation' package was lacking, and rather than install it like I thought rosinstall was supposed to, I had to install it with my package manager (I'm on ubuntu oneiric)
Then I run:
rosmake motion_analysis_mocap
and I get this error:
[100%] Building CXX object CMakeFiles/evart.dir/src/nodes/tracker.o
<myrosoverlaydir>/stacks/motion_analysis_mocap/evart_bridge/src/nodes/tracker.cpp: In member function ‘void evart::Tracker::callback(const evas_body_segments_t&)’:
<myrosoverlaydir>/stacks/motion_analysis_mocap/evart_bridge/src/nodes/tracker.cpp:119:7: error: ‘class btQuaternion’ has no member named ‘setRPY’
make[3]: *** [CMakeFiles/evart.dir/src/nodes/tracker.o] Error 1
So my educated guess is that the setRPY method of the btQuaternion class should initialize the quaternion given roll, pitch, and yaw angles. That class appears to come from the btQuaternion.h include in the tracker.cpp file. Searching my /opt/ros/fuerte folder for btQuaternion.h yields two such files:
/opt/ros/fuerte/stacks/geometry_experimental/tf2/include/LinearMath/btQuaternion.h
/opt/ros/fuerte/stacks/bullet/include/LinearMath/btQuaternion.h
Both define a btQuaternion class. The first has a setRPY method, the second does not. (It's got setZYX instead)
My guess is therefore that this is somehow a dependency/path problem (bullet's include path getting put before geometry_experimental/tf2's). Can anybody offer any help as to how I might resolve it?
I do not have access to this package. Which package dependency is mentioned in manifest.xml? Had you tried it in electric ?
Report this to the bug tracker: https://github.com/laas/motion_analysis_mocap/issues
@prince: bullet was the dependency in question, apparently (see Thomas's answer below)