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

Got:warning, no ros configured for this environment message

asked 2013-05-06 22:20:07 -0500

Haojun Guan gravatar image

I have ran ros on Ubuntu 12.04 before, and when I would like to use it again today, I got this message: Warning, no ros configured for this environment. show on my terminal.

I am a new user of both ros and ubuntu, this may a stupid question. but please help me.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2013-05-07 03:03:26 -0500

updated 2013-05-07 03:05:20 -0500

This is most likely a problem with your environment variables. The exact way you need to set the environment variables depends on which distro of ROS you are running (fuerte, groovy, etc.). If you go back to the install instructions for your version, you will notice that there is a step about "sourcing" a setup.bash file. For example in section 1.5 of the fuerte install instructions, you'll a description about how to properly configure your environment. Note that as the link mentions, if you don't add changes to your environment to your .bashrc file, then you will have to change them in every terminal you want to use ROS in.

ROS needs environment variables such as ROS_DISTRO, ROS_MASTER_URI, ROS_PACKAGE_PATH, and more all to be set to function properly. You can check all currently set environment variables with the env command. You can also do something like echo $ROS_DISTRO to see just one environment variable. To see all ROS environment variables you could use

env | grep ROS

Also note that even if your environment variables are all set, they need to be set in agreement with your actual current system setup. For example, if you installed Fuerte following the install instructions, and then switched to Groovy, it's possible your .bashrc file has conflicting commands in it.

edit flag offensive delete link more

Question Tools


Asked: 2013-05-06 22:20:07 -0500

Seen: 102 times

Last updated: May 07 '13