# \[Bug\] Ignition to ROS Bridge not working

**URL:** <https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040>\
**Category:** Introduction to Gazebo Sim with ROS2\
**Created:** [February 23, 2024, 7:54am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040 "2024-02-23T07:54:44Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![jkel.1996](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jkel.1996/32/6967_2.png) [@jkel.1996](https://get-help.theconstruct.ai/u/jkel.1996)\
**Post date:** [February 23, 2024, 7:54am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/1 "2024-02-23T07:54:45Z")

</div>

This is an error report.

* * *

**Screenshot of the error**

 ![](https://get-help.robotigniteacademy.com/uploads/default/original/2X/b/b0d06739736b2f0a1b0ca22aab2163f4603cc4f5.jpeg)
* * *

**Error details**

In section 3.2, following the instructions does not result in chatter messages being echoed when using "ros2 topic echo /chatter"

---

<div class="post-metadata">

**Author:** ![girishkumar.kannan](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/girishkumar.kannan/32/6994_2.png) [@girishkumar.kannan](https://get-help.theconstruct.ai/u/girishkumar.kannan)\
**Post date:** [February 23, 2024, 8:08am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/3 "2024-02-23T08:08:20Z")

</div>

Hi @jkel.1996 ,

Welcome to this Community!

It is working fine for me I tested it just now.

I think you are not following instructions properly.

Subscribers do not print out any messages unless any topic publishes to that subscription topic.

Please read the instructions carefully:

1. You need to start the bridge.
2. You need to subscribe to ROS2 topic.
3. You then publish into the Gazebo topic with a Publisher.

**EDIT: THIS IS NOT A BUG !**  
This is the way the course is designed.  
Not every single command will immediately produce an output on the screen.

Regards,  
Girish

---

<div class="post-metadata">

**Author:** ![jkel.1996](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jkel.1996/32/6967_2.png) [@jkel.1996](https://get-help.theconstruct.ai/u/jkel.1996)\
**Post date:** [February 23, 2024, 9:48am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/4 "2024-02-23T09:48:45Z")

</div>

Hi thank you for your prompt reply.

I understand that nothing will be received by the subscriber when I run “ros2 topic echo /chatter” unless another node is first publishing to /chatter.

I was required to submit a screenshot of the error and couldn’t take one with all 3 terminals visible simultaneously.

Interesting that it is working for you, because when I ran the gz topic publisher on the /chatter topic. I did not see anything echo-ed in ROS. I will try again later.

---

<div class="post-metadata">

**Author:** ![jkel.1996](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jkel.1996/32/6967_2.png) [@jkel.1996](https://get-help.theconstruct.ai/u/jkel.1996)\
**Post date:** [February 26, 2024, 3:07am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/5 "2024-02-26T03:07:01Z")

</div>

Hi @ [girishkumar.kannan](https://get-help.robotigniteacademy.com/t/bug-ignition-to-ros-bridge-not-working/29040/3),

I just tried to run the example again. I am not sure why it is not working for me.

Here are some screenshots. Would like to know what I am doing wrong because I am copying and pasting the instructions.

I also tried changing the message type from ignition.msgs.StringMsg to gz.msgs.StringMsg after getting deprecated warnings.

 ![Screenshot from 2024-02-26 11-04-31](https://get-help.robotigniteacademy.com/uploads/default/original/2X/8/8fdfa15de0c5afa60cf0576e3102bc1918b018f4.png)

I can only upload 1 image at a time, I will include 2 more in 2 following replies.

---

<div class="post-metadata">

**Author:** ![jkel.1996](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jkel.1996/32/6967_2.png) [@jkel.1996](https://get-help.theconstruct.ai/u/jkel.1996)\
**Post date:** [February 26, 2024, 3:07am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/6 "2024-02-26T03:07:32Z")

</div>

ros2 topic echo /chatter screenshot.

 ![Screenshot from 2024-02-26 11-04-35](https://get-help.robotigniteacademy.com/uploads/default/original/2X/e/ead0cb0be9028a36b832e1b225f84cc756381987.png)

---

<div class="post-metadata">

**Author:** ![jkel.1996](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jkel.1996/32/6967_2.png) [@jkel.1996](https://get-help.theconstruct.ai/u/jkel.1996)\
**Post date:** [February 26, 2024, 3:08am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/7 "2024-02-26T03:08:19Z")

</div>

gz topic -t /chatter -m… screenshot.

 ![Screenshot from 2024-02-26 11-04-39](https://get-help.robotigniteacademy.com/uploads/default/original/2X/8/8f908a4c0df1e2f12138239ec8f1ff7a2d40188f.png)

---

<div class="post-metadata">

**Author:** ![girishkumar.kannan](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/girishkumar.kannan/32/6994_2.png) [@girishkumar.kannan](https://get-help.theconstruct.ai/u/girishkumar.kannan)\
**Post date:** [February 26, 2024, 5:31am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/8 "2024-02-26T05:31:18Z")

</div>

Hi @jkel.1996 ,

Thanks for the pictures. You can attach more than one picture in a single post (just copy-paste the picture one after another, rather than attaching a picture).

Your issue seems to be weird. I guess there is some glitch in the course VM or backend or bashrc file.

I will try to see if I can replicate your issue and give you a solution.

Regards,  
Girish

---

<div class="post-metadata">

**Author:** ![jkel.1996](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/jkel.1996/32/6967_2.png) [@jkel.1996](https://get-help.theconstruct.ai/u/jkel.1996)\
**Post date:** [February 26, 2024, 6:26am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/9 "2024-02-26T06:26:29Z")

</div>

Dear @girishkumar.kannan,

Thank you again for your prompt response.

I tried on my local machine and the parameter bridge does not seem to work for my binary installation of ros\_gz via `sudo apt install ros-humble-ros-gz` as well. However, it does work for a source installed version of the package.

I’m not sure why the debian package is not working though.

Oh, apparently I am a new user, that’s why I am not allowed to upload multiple pictures simultaneously.

 ![Screenshot from 2024-02-26 13-57-55](https://get-help.robotigniteacademy.com/uploads/default/original/2X/8/806da5fc14971c59da6d90a33fb7e0b162749c39.png)

---

<div class="post-metadata">

**Author:** ![girishkumar.kannan](https://get-help.theconstruct.ai/user_avatar/get-help.theconstruct.ai/girishkumar.kannan/32/6994_2.png) [@girishkumar.kannan](https://get-help.theconstruct.ai/u/girishkumar.kannan)\
**Post date:** [February 26, 2024, 7:03am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/10 "2024-02-26T07:03:05Z")

</div>

Hi @jkel.1996 ,

> [@jkel.1996](#):
>
> I tried on my local machine and the parameter bridge does not seem to work for my binary installation of ros\_gz via `sudo apt install ros-humble-ros-gz` as well. However, it does work for a source installed version of the package.

Yes, that could be the issue. Thanks for bringing that to notice.

> [@jkel.1996](#):
>
> Oh, apparently I am a new user, that’s why I am not allowed to upload multiple pictures simultaneously.

Ah, I see. You need to get these two badges: [Basic Badge](https://get-help.robotigniteacademy.com/badges/1/basic) and [Read Guidelines Badge](https://get-help.robotigniteacademy.com/badges/16/read-guidelines)

Regards,  
Girish

---

<div class="post-metadata">

**Author:** ![system](https://get-help.theconstruct.ai/uploads/default/original/2X/9/9d3ce8305cc0d0d9b6e07d15767a6f245c526f1b.jpeg) [@system](https://get-help.theconstruct.ai/u/system)\
**Post date:** [March 2, 2024, 7:04am UTC](https://get-help.theconstruct.ai/t/bug-ignition-to-ros-bridge-not-working/29040/11 "2024-03-02T07:04:02Z")

</div>

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.
