Ask Your Question
0

ros2 run rviz on remote machine

asked 2020-10-12 11:15:09 -0500

luca.fancellu gravatar image

Hi everyone, I'm quite new approaching ROS2, I'm wondering if it is possible to run Rviz on a machine and run a set of nodes on another having them connected by a network, I remember that on ROS1 it was possible thanks by setting ROS_MASTER_URI and ROS_IP.

I didn't found anything on ROS2. Do you know if it is possible?

Thank you

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2020-10-13 09:53:01 -0500

paul.frivold gravatar image

Yes, this is possible. In fact it's easier then w/ ros1. Just make sure both machines are on the same network and are using the same ROS_DOMAIN_ID (default is 0, so should work fine by default unless you changed something)

edit flag offensive delete link more

Comments

1

To add more information to this answer, when running ROS2 on a container, just launch it with the

-e ROS_DOMAIN_ID=<number>

argument and it will launch ROS2 and setup everything. Otherwise in the shell just do:

export ROS_DOMAIN_ID=<number>
source /opt/ros/<version>/setup.bash
luca.fancellu gravatar image luca.fancellu  ( 2020-10-22 06:24:08 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

2 followers

Stats

Asked: 2020-10-12 11:15:09 -0500

Seen: 542 times

Last updated: Oct 12 '20