Home | Tutorials | Wiki | Issues
Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

Sourced Gazebo ROS pkg cannot compile

Hello,

I am currently using Gazebo 1.9.3. I am trying to install the gazebo ros packages via source. I followed the tutorial for the ros hydro version (http://gazebosim.org/wiki/Tutorials/1.9/Installing_gazebo_ros_Packages#Install_gazebo_ros_pkgs).

When I get to building the gazebo ros package I get a error:

[100%] Building CXX object gazebo_ros_pkgs/gazebo_ros_control/CMakeFiles/gazebo_ros_control.dir/src/gazebo_ros_control_plugin.cpp.o /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:471:3: error: ‘PositionJointSaturationInterface’ in namespace ‘joint_limits_interface’ does not name a type /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:474:3: error: ‘VelocityJointSoftLimitsInterface’ in namespace ‘joint_limits_interface’ does not name a type /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp: In member function ‘virtual void gazebo_ros_control::DefaultRobotHWSim::writeSim(ros::Time, ros::Duration)’: /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:274:5: error: ‘pj_sat_interface_’ was not declared in this scope /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:277:5: error: ‘vj_limits_interface_’ was not declared in this scope /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp: In member function ‘void gazebo_ros_control::DefaultRobotHWSim::registerJointLimits(const string&, const hardware_interface::JointHandle&, gazebo_ros_control::DefaultRobotHWSim::ControlMethod, const ros::NodeHandle&, const urdf::Model, int, double, double, double)’: /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:426:19: error: ‘VelocityJointSoftLimitsHandle’ in namespace ‘joint_limits_interface’ does not name a type /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:428:13: error: ‘vj_limits_interface_’ was not declared in this scope /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:428:49: error: ‘limits_handle’ was not declared in this scope /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:446:19: error: ‘PositionJointSaturationHandle’ in namespace ‘joint_limits_interface’ does not name a type /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:448:13: error: ‘pj_sat_interface_’ was not declared in this scope /home/code8200/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:448:46: error: ‘sat_handle’ was not declared in this scope make[2]: [gazebo_ros_pkgs/gazebo_ros_control/CMakeFiles/default_robot_hw_sim.dir/src/default_robot_hw_sim.cpp.o] Error 1 make[1]: [gazebo_ros_pkgs/gazebo_ros_control/CMakeFiles/default_robot_hw_sim.dir/all] Error 2 make[1]: Waiting for unfinished jobs.... Linking CXX shared library /home/code8200/catkin_ws/devel/lib/libgazebo_ros_control.so [100%] Built target gazebo_ros_control make: * [all] Error 2 Invoking "make" failed

From what I can see the problem is that there are files missing from which this gazebo package expects to do something with. I checked to see if all my ros depencies where covered for this package and the rosdep command comes back with no problems. Any one know how to fix this issue?