ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

ROS_DOMAIN_ID with microROS

asked 2020-11-29 18:10:13 -0500

Francis Zaato gravatar image

Hi Everyone,

New to ROS but not to embedded systems.

I installed ROS2 Foxy on Ubuntu 20.04 in a virtualbox VM with a bridged network adapter.

Completed this tutorial successfully: https://micro-ros.github.io/docs/tuto...

Tried the next tutorial but modified for freertos on ESP32: https://micro-ros.github.io/docs/tuto...

Unable to complete succesfully until I realized that the ROS_DOMAIN_ID setting had an impact on the microROS setup.

I had originally set up my foxy with ROS_DOMAIN_ID = 7 and also foxy on a raspberry pi 4 with ROS_DOMAIN_ID = 7 and there was no trouble. However, the microROS on the esp32 would not report the /microROS/ping and /microROS/pong when ROS_DOMAIN_ID = 7. It reports correctly when ROS_DOMAIN_ID = 0.

Please see the attached pic for a graphical highlight of the situation.

I think this is a feature, but is documented or undocumented? :)

Looking forward to answers. Thanks.

Regards, F

PS: Just found out I don't have enough points to upload the image......you're gonna have to take my word for it. :) PS2: Here's the pic: https://imgur.com/a/CXn3ZUG

edit retag flag offensive close merge delete

Comments

Just found out I don't have enough points to upload the image

I've given you sufficient karma to post images, but: it appears your screenshot shows terminal text.

There is no need to post screenshots of text, as it's text. Just copy-paste it into your question, select it and press the Preformatted Text button (the one with 101010 on it) to format it properly.

gvdhoorn gravatar image gvdhoorn  ( 2020-11-30 02:03:07 -0500 )edit

Thanks for the karma and suggestion! :)

Francis Zaato gravatar image Francis Zaato  ( 2020-11-30 02:25:37 -0500 )edit

I am facing the same issue. Please do share if you have found a solution

Bhavesh gravatar image Bhavesh  ( 2021-10-01 09:01:17 -0500 )edit

I suspect it has to do with the message: No LSB module available since you are using a Virtual machine. One thing that may work: sudo apt-get install lsb-core

osilva gravatar image osilva  ( 2021-10-01 14:00:39 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-10-01 14:07:59 -0500

Bhavesh gravatar image

Found a solution! You need to compile the ROS Domain ID into the microROS node's options. Tested this on my end and it works. The example I found was here: https://github.com/micro-ROS/micro-RO...

edit flag offensive delete link more

Question Tools

1 follower

Stats

Asked: 2020-11-29 18:06:02 -0500

Seen: 1,279 times

Last updated: Oct 01 '21