Closed skywoodsz closed 2 years ago
/home/skywoodsz/MQuadruped_ws/src/champ_exter_control/src/pinocchio_control_test.cpp
that the first header you include is #include <pinocchio/fwd.hpp>
, especially before anything from boost or anything that could include boost.To add to (3), include #include <pinocchio/fwd.hpp>
prior to the ros.h
header since ROS implicitly includes Boost. Here is a minimal example for how to use Pinocchio with ROS: https://github.com/wxmerkt/pinocchio_ros_example
Thanks a lot @nim65s and @wxmerkt for the quick feedback.
Hi, I want to use pinocchio in ROS. However, when I compile the program with catkin_make, I get the following error:
In file included from /opt/openrobots/include/pinocchio/fwd.hpp:25:0, from /opt/openrobots/include/pinocchio/spatial/fwd.hpp:9, from /opt/openrobots/include/pinocchio/multibody/model.hpp:9, from /opt/openrobots/include/pinocchio/parsers/urdf.hpp:9, from /home/skywoodsz/MQuadruped_ws/src/champ_exter_control/src/pinocchio_control_test.cpp:6: /opt/openrobots/include/pinocchio/container/boost-container-limits.hpp:30:9: error: #error "You should include pinocchio before the Boost headers (e.g. #include <pinocchio/fwd.hpp>)"
error "You should include pinocchio before the Boost headers (e.g. #include <pinocchio/fwd.hpp>)"
I can compile the program with make. My system version is ubuntu1604, ROS-Kinetic and Pinocchio2.6.5. Could you tell me how to fix this problem? Thanks!