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

RO2 communication, I see topics not the data when is a customMsg

asked 2021-04-09 18:42:57 -0500

blackmamba264 gravatar image

Hi everyone

I have 2 machines. A WS machine with ROS2 and a Ubuntu 20.04 with ROS2 (same distro foxy). If I connect them to the same network they already see each others. I did some test with basics pub and sub nodes from one pc to another and it works correctly, i'm saving the ros2bag on the Ubuntu machine

Then I basically kept the same pub node on the WS machine but sending a custom message (very simple) instead of hello world 1, 2, 3...

On the Ubuntu machine i can see the topic in which WS is publishing with ros2 topic list, but ros2 topic echo is not working. When i try, it gives me a long error and at the end: ModuleNotFoundError: No module named 'ros2basics' (where ros2basics is the package containing the pub node on the WS machine)

What is this? is it a network issue? I would not say that since with std msgs it works fine. Shall I declare that package in some places in my Ubuntu machine?

Thanks

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2021-04-13 11:17:53 -0500

blackmamba264 gravatar image

UPDATE

I resolved adding the same ROS_DOMAIN_ID in all the shells in both machines

edit flag offensive delete link more

Question Tools

Stats

Asked: 2021-04-09 18:42:57 -0500

Seen: 313 times

Last updated: Apr 13 '21