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

Trying to run rviz: Getting error "Could not contact ROS master..."

asked 2011-09-26 13:43:16 -0600

Paul0nc gravatar image

I'm trying to run rviz on electric/Ubuntu 10.4. I am getting the popup message:

rviz: Waiting for master Could not contact ROS master at [http://localhost:11311, retrying...

I've run rviz before and never seen this. Any assistance is appreciated. Paul.

edit retag flag offensive close merge delete

Comments

Paul, you can edit your original question, rather than posting an answer. Is your roscore running and your ROS_MASTER_URI pointing to it?
hsu gravatar image hsu  ( 2011-09-26 14:27:08 -0600 )edit
Thanks Hsu. This worked.
Paul0nc gravatar image Paul0nc  ( 2011-10-02 03:33:20 -0600 )edit

3 Answers

Sort by ยป oldest newest most voted
15

answered 2011-09-26 20:30:31 -0600

jrcapriles gravatar image

updated 2011-09-26 20:31:26 -0600

Try:

In one terminal run "roscore" Then, in a new terminal do "rosrun rviz rviz"

edit flag offensive delete link more
4

answered 2011-09-27 07:42:14 -0600

akargol gravatar image

updated 2011-09-27 07:46:31 -0600

You need some instance of roscore running, either on your machine or externally. One option is what someone else already suggested, which is to roscore in a terminal on your machine. What we frequently have to do in our lab is to remotely access robot data. In this case, we need to access the instance of roscore running on the robot (PR2, just for reference). In this case set the environment variable ROS_MASTER_URI to the appropriate value. This value is usually http://[name]:11311.

edit flag offensive delete link more

Comments

Thanks akargol. This worked.
Paul0nc gravatar image Paul0nc  ( 2011-10-02 03:33:52 -0600 )edit
0

answered 2011-09-26 13:53:19 -0600

Paul0nc gravatar image

updated 2011-09-26 13:54:21 -0600

More information... the terminal from which I type

rosrun rviz rviz

gives the following info:

[ INFO] [1317088285.666772433]: rviz revision number 1.6.3 [ INFO] [1317088285.666849648]: ogre_tools revision number 1.6.2 [ INFO] [1317088285.666866015]: compiled against OGRE version 1.7.3 (Cthugha)

Paul.

edit flag offensive delete link more

Comments

2
Please edit your original question, rather than posting an "answer". Do you have roscore running? If not, nothing's going to work.
Mac gravatar image Mac  ( 2011-09-26 14:29:51 -0600 )edit

Question Tools

Stats

Asked: 2011-09-26 13:43:16 -0600

Seen: 34,180 times

Last updated: Sep 27 '11