Gazebo | Ignition | Community
Ask Your Question
0

Ignition Citadel Error: Failed to create a bridge for topic

asked 2020-12-17 21:08:43 -0500

FKNoble gravatar image

Hi there,

I saw that Ignition is the new "Gazebo" and that it'd be what will be developed moving forward. I wanted to try it out; however, when I run the following command:

ros2 run ros_ign_bridge parameter_bridge /TOPIC@ROS_MSG@IGN_MSG

I get the following error:

Failed to create a bridge for topic [/TOPIC] with ROS2 type [ROS_MSG] and Ignition Transport type [IGN_MSG]

I'm running ROS2 Foxy on Ubuntu 20.04. I have followed the installation instructions here: https://ignitionrobotics.org/docs/cit.... I can run Ignition, i.e. I can view the GUI etc.

I can't see what I did wrong; any help would be greatly appreciated.

Best regards,

Frazer

edit retag flag offensive close merge delete

Comments

Just in case, /TOPIC, @ROS_MSG and @IGN_MSG are just templates that you should replace for your specific example. In case you're doing it, could you type the exact example that it's not working?

Carlos Agüero gravatar imageCarlos Agüero ( 2020-12-18 12:46:56 -0500 )edit

My mistake was that I was typing: ros2 run ros_ign_bridge parameter_bridge /TOPIC@ROS_MSG@IGN_MSG, but I should have typed: ros2 run ros_ign_bridge parameter_bridge /keyboard/keypress@std_msgs/msg/Int32....

FKNoble gravatar imageFKNoble ( 2020-12-20 13:54:25 -0500 )edit

1 Answer

Sort by » oldest newest most voted
1

answered 2020-12-18 13:26:22 -0500

In the command you ran, TOPIC, ROS_MSG, and IGN_MSG need to be replaced with a particular topic, ros message type, and ignition message type, respectively.

It looks like you are following the ROS 2 integration tutorial. The bidirectional communication section outlines the format for running a ros2 run ros_ign_bridge ... command, but the actual command you want to run is shown in the publish keystrokes to ROS section, which can be found just below the command you ran originally:

ros2 run ros_ign_bridge parameter_bridge /keyboard/keypress@std_msgs/msg/Int32@ignition.msgs.Int32

The arguments for this command are also explained in the "publish keystrokes to ROS section" that I just shared with you, so I'd encourage you to read through that link to get a better understanding of this command if needed.

The ros_ign_bridge repository also has a few examples that you can test if needed. I hope this helps!

edit flag offensive delete link more

Comments

Thanks so much, that solved my issue. Also, in case it helps anyone else, here's a video showing exactly what to do: https://www.youtube.com/watch?v=IpZTN....

FKNoble gravatar imageFKNoble ( 2020-12-20 13:52:51 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2020-12-17 21:08:43 -0500

Seen: 805 times

Last updated: Dec 18 '20