Gazebo | Ignition | Community
Ask Your Question

ros gazebo plugin not processing command topic: [closed]

asked 2013-08-11 18:50:37 -0500

rnunziata gravatar image

updated 2013-08-16 07:52:13 -0500


I am using the gazebo plugin from which gives the ability to send position commands via the command line. It is this code ( that I think should be processing the commands form rqt-plot.

rostopic pub /rrbot/joint1_position_controller/command std_msgs/Float64 "data: 1.5"

I can print the node/topic graph and it shows Gazebo as subscribing to this topic. But when I issue it via the terminal, rostopic never returns and the model does not move. Also if I try issuing this command via rqt-gui publish plugin. I can see the command being published but not processed. How I can debug this further to locate the problem.

The screen shot shows that Gazebo is waiting on /rrbot/joint1_position_controller/command [unknown type] however it is not possible to pass valid float values via rqt-plot this way. The data extension is needed but Gazebo considers this a separate topic.

image description

note: the node is gazebo and it is using I have no user plugins in this environment.

viki:~$ rosnode info gazebo
Node [/gazebo]
 * /rrbot/camera1/camera_info [sensor_msgs/CameraInfo]
 * /rrbot/laser/scan [sensor_msgs/LaserScan]
 * /rrbot/joint1_position_controller/pid/parameter_descriptions [dynamic_reconfigure/ConfigDescription]
 * /rrbot/joint1_position_controller/state [control_msgs/JointControllerState]
 * /rrbot/joint2_position_controller/state [control_msgs/JointControllerState]
 * /rrbot/joint2_position_controller/pid/parameter_updates [dynamic_reconfigure/Config]
 * /rrbot/joint2_position_controller/pid/parameter_descriptions [dynamic_reconfigure/ConfigDescription]
 * /rrbot/joint1_position_controller/pid/parameter_updates [dynamic_reconfigure/Config]
 * /gazebo/parameter_descriptions [dynamic_reconfigure/ConfigDescription]
 * /rosout [rosgraph_msgs/Log]
 * /rrbot/camera1/image_raw [sensor_msgs/Image]
 * /rrbot/camera1/parameter_updates [dynamic_reconfigure/Config]
 * /gazebo/link_states [gazebo_msgs/LinkStates]
 * /gazebo/model_states [gazebo_msgs/ModelStates]
 * /clock [rosgraph_msgs/Clock]
 * /rrbot/camera1/parameter_descriptions [dynamic_reconfigure/ConfigDescription]
 * /gazebo/parameter_updates [dynamic_reconfigure/Config]

 * /gazebo/set_model_state [unknown type]
 * /gazebo/set_link_state [unknown type]
 * /clock [rosgraph_msgs/Clock]
 * /rrbot/joint1_position_controller/command [unknown type]
 * /rrbot/joint2_position_controller/command [unknown type]
edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by rnunziata
close date 2013-08-16 20:56:21.495852


Do you get any error message from the consoles?

Arn-O gravatar imageArn-O ( 2013-08-12 11:25:09 -0500 )edit

unfortunately none...I am running hydro with gazebo 1.9....not sure how to investigate further replication is no problem.

rnunziata gravatar imagernunziata ( 2013-08-12 22:08:54 -0500 )edit

I can not seem to add a comment on your ans so I will answer here. i am using

rnunziata gravatar imagernunziata ( 2013-08-15 19:22:51 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted

answered 2013-08-15 18:14:17 -0500

nkoenig gravatar image

I think you have a Gazebo plugin that is attached to you model. The plugin should run ros::init, create a node and a set of subscribers.

We won't be able to help you much further without seeing your plugin code.

edit flag offensive delete link more


Question Tools


Asked: 2013-08-11 18:50:37 -0500

Seen: 1,274 times

Last updated: Aug 16 '13