Gazebo | Ignition | Community
Ask Your Question

gazebo freezes with gazebo_ros_control, libgazebo_ros_control

asked 2021-09-26 01:02:22 -0600

acenturyandabit gravatar image

I have a model file which uses

  <plugin name="gazebo_ros_control" filename="">

Without these lines, the file loads fine, using this launch file line:

<node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" args="-x 0 -y 0 -z 1 -file $(find 
keyboard_control_arm)/urdf/output.urdf -urdf -model beam_balance" respawn="false" output="screen" />

With these lines, gazebo freezes (gzserver and gzclient). I don't have anything else in my launch file except empty world.launch. What could be going wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2021-09-26 01:08:21 -0600

acenturyandabit gravatar image

The answer turned out to be: You NEED to put the model file urdf raw text as a parameter under /robot_description, so that gazebo_ros_control plugin knows what your robot is up to. Something like

<param name="robot_description" textfile="$(find your_pkg)/urdf/your_urdf.urdf" />

Hope that saves someone four hours!

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2021-09-26 01:02:22 -0600

Seen: 64 times

Last updated: Sep 26 '21