Gazebo | Ignition | Community
Ask Your Question

No force_torque topic is published when loading xacro into ignition gazebo via ros2 launch

asked 2023-01-31 19:00:44 -0500

xibeisiber gravatar image

updated 2023-02-01 05:43:48 -0500

Hi, I want to simulate the force torque sensor in ignition gazebo together with ros2. I loaded the xacro file to ignition gazebo, the force torque sensor seems to be created successfully, but no force_torque topic is published by "ign topic -l". If I save the world into sdf file and load it into ignition gazebo, the force_torque topic appears.

The package is modified from ros_gz_sim_demos. link:

ros2 launch test_demos

ros2 launch test_demos

ign topic -l

Environment: ubuntu 22.04, ros2 humble, Ignition Gazebo 6.11.0

Thanks for any help!


edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted

answered 2023-02-02 02:24:52 -0500

xibeisiber gravatar image

updated 2023-02-02 02:25:22 -0500

Partly solved.

For some unknown reason, the <plugin filename="ignition-gazebo-forcetorque-system" name="ignition::gazebo::systems::ForceTorque" /> can not be successfully loaded when written in xacro file.

A makeshift solution is to add this plugin in /usr/share/ignition/ignition-gazebo6/worlds/empty.sdf.

edit flag offensive delete link more


hmm, that's really strange. Do you have a small example that can demonstrate the xacro issue?

azeey gravatar imageazeey ( 2023-02-03 13:09:56 -0500 )edit

yes. The example package is

xibeisiber gravatar imagexibeisiber ( 2023-02-05 01:34:17 -0500 )edit

Ah, after looking into this quite a bit, I realized the problem was that the plugin was being added as part of the model while, as you've discovered, it should have been part of the world. i.e, the ForceTorque system is meant to be a world plugin, not a model plugin.

azeey gravatar imageazeey ( 2023-02-06 17:15:46 -0500 )edit

Thanks for your reply!

xibeisiber gravatar imagexibeisiber ( 2023-04-07 02:38:32 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2023-01-31 19:00:44 -0500

Seen: 88 times

Last updated: Feb 02