ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

ubuntu 14 LTS : indigo: fail to compile default_robot_hw_sim.cpp

asked 2014-06-04 18:55:52 -0500

rnunziata gravatar image

updated 2014-06-05 16:20:56 -0500

Could not find gazebo_ros_control so lib...cloned gazebo_ros_pkgs into my catkskin. Get the following compile error: My question is , is this package ready for indigo ...I though it would pull from indigo-devel? I am running gazebo2.

default_robot_hw_sim.dir/src/default_robot_hw_sim.cpp.o Built target gazebo_ros_control /home/richard/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp: In member function ‘virtual bool gazebo_ros_control::DefaultRobotHWSim::initSim(const string&, ros::NodeHandle, gazebo::physics::ModelPtr, const urdf::Model*, std::vector<transmission_interface::transmissioninfo>)’: /home/richard/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:155:78: error: ‘struct transmission_interface::ActuatorInfo’ has no member named ‘hardware_interface_’ const std::string& hardware_interface = transmissions[j].actuators_[0].hardware_interface_; ^

/home/richard/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:220:45: error: no matching function for call to ‘control_toolbox::Pid::init(const ros::NodeHandle&, bool)’ if (pid_controllers_[j].init(nh,true)) ^

/home/richard/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:220:45: note: candidate is: In file included from /home/richard/catkin_ws/src/gazebo_ros_pkgs/gazebo_ros_control/src/default_robot_hw_sim.cpp:45:0: /opt/ros/indigo/include/control_toolbox/pid.h:201:8: note: bool control_toolbox::Pid::init(const ros::NodeHandle&) bool init(const ros::NodeHandle &n); ^ /opt/ros/indigo/include/control_toolbox/pid.h:201:8: note: candidate expects 1 argument, 2 provided 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: * [all] Error 2 Invoking "make" failed

edit retag flag offensive close merge delete

Comments

Is this question more suited for the gazebo question board?

rnunziata gravatar image rnunziata  ( 2014-06-05 16:19:45 -0500 )edit

2 Answers

Sort by » oldest newest most voted
0

answered 2014-06-12 13:42:22 -0500

rnunziata gravatar image

According to ros board issue should be fixed and released shortly.

edit flag offensive delete link more
0

answered 2014-06-11 15:37:13 -0500

mhariharasudan gravatar image

The argument for the init method in control_toolbox has changed. In the default_robot_hw_sim.cpp file, replace the method

(pid_controllers_[j].init(nh,true)) with (pid_controllers_[j].init(nh))

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2014-06-04 18:55:52 -0500

Seen: 507 times

Last updated: Jun 12 '14