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

How to run Rviz remotely

asked 2011-06-21 04:32:18 -0600

I assume that it's possible run run Rviz on a machine other than the one running the robot. If so, how to I set the master address (the IP address of the robot) which Rviz should be subscribing to ?

edit retag flag offensive close merge delete

2 Answers

Sort by » oldest newest most voted
1

answered 2011-06-23 00:40:49 -0600

The NetworkSetup page has some good information on that.

edit flag offensive delete link more

Comments

Awesome. Setting ROS_IP and ROS_HOSTNAME on the remote computer fixed the problem. I notice that setting the 2D Pose Estimate using Rviz no longer works though.
JediHamster gravatar image JediHamster  ( 2011-06-23 02:50:32 -0600 )edit
You should only set one. ROS_IP and ROS_HOSTNAME are optional environment variable that sets the declared network address of a ROS Node or tool. The options are mutually exclusive
rado0x54 gravatar image rado0x54  ( 2011-06-23 07:01:13 -0600 )edit
3

answered 2011-06-21 04:39:44 -0600

arebgun gravatar image

You need to set the ROS_MASTER_URI environment variable, see this page for details.

edit flag offensive delete link more

Comments

Does the robot need to have a web server installed on it (apache, etc) ?
JediHamster gravatar image JediHamster  ( 2011-06-21 08:25:59 -0600 )edit
you just need to be able to ping between the machines. you might also need to set the ROS_IP of the robot. Additionally you will need to sync the two machines or else you will have this problem: http://answers.ros.org/question/705/set-the-initial-pose-with-rviz
mmwise gravatar image mmwise  ( 2011-06-21 09:13:22 -0600 )edit
A can connect, but it seems that no data is being broadcast from the robot ("No messages received"). Is there anything I need to do with the parameter files to enable broadcasting of the map, for example?
JediHamster gravatar image JediHamster  ( 2011-06-21 21:24:03 -0600 )edit
can you rostopic echo the topics you want to see on the other computer?
mmwise gravatar image mmwise  ( 2011-06-23 18:10:12 -0600 )edit

got the same issues, ping works, but they cannot see eachother's topic/services

phil123456 gravatar image phil123456  ( 2020-02-09 05:14:38 -0600 )edit

Some of the problems about the "No messages received" are because you need to also set the ROS_IP and ROS_MASTER_URI inside the robot, that's because the robot (let's assume its network name is lil_robot) may receive the packets from lil_robot.local (where avahi might be able to send) but then send to lil_robot which will translate to localhost a.k.a. which is not the correct network name. so just by setting export ROS_MASTER_URI=http://lil_robot.local:11311 and export ROS_HOSTNAME=lil_robot.local inside the bashrc or zshrc after the source /opt/ros/version/setup.zsh the problem gets soved.

fcolecumberri gravatar image fcolecumberri  ( 2021-09-20 06:49:07 -0600 )edit

@fcolecumberri I have this issue with my turtlebot2, I can ssh to remote PC, but when I go into Rviz on remote PC, the 2D Pose Estimate doesnt work, I can see that I am publishing to the /initialpose on the terminal but the robot still does not move in Rviz. In the laptop physically connected to the turtlebot2, I have ROS_MASTER_URI and ROS_IP set to the IP of the robot. In the other Remote PC I have ROS_MASTER_URI set to the IP of the robot, and ROS_IP set to the IP of the remote PC. Did I do it wrong?

distro gravatar image distro  ( 2022-08-23 00:29:11 -0600 )edit

Question Tools

Stats

Asked: 2011-06-21 04:32:18 -0600

Seen: 16,204 times

Last updated: Jun 23 '11