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

Revision history [back]

click to hide/show revision 1
initial version

Okay, so there's apparently an issue with parsing the input argc/argv arguments when initializing the node in the file

/opt/ros/groovy/stacks/simulator_gazebo/gazebo/src/gazebo_ros_api_plugin.src

I fixed this by explicitly defining the node name in the function

void GazeboRosApiPlugin::Load(int argc, char** argv)

by replacing

ros::init(argc,argv,"gazebo",ros::init_options::NoSigintHanlder);

with

std::map<std::string,std::string> remappings; remappings["gazebo"] = "gazebo"; ros::init(remappings,"gazebo",ros::init_options::NoSigintHanlder);

Probably not the most elegant solution, nor does it actually address the root cause of this issue, but it fixes the problem.