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

Deleted .bashrc line, how to set path to ROS?

asked 2011-03-20 10:52:19 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

I deleted the last line in the .bashrc file in my newly installed cturtle ROS under Ubuntu 10.10. Now no ROS commands will work as it cannot find the ROS path. I have found 'setup.bash' in the \opt\ros\cturtle path and presume this will update the .bashrc ? As a newcomer to Linux, how do I run 'setup.bash' or, what line must be in .bashrc ? Sorry for doing such a dumb move.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
2

answered 2011-03-20 11:04:07 -0500

this post is marked as community wiki

This post is a wiki. Anyone with karma >75 is welcome to improve it.

In order to get the ROS commands back, you simply have to run:

source /opt/ros/<DISTRO>/setup.bash

You can also add this command to the bottom of your .bashrc file.

edit flag offensive delete link more

Comments

THANK YOU! Works perfectly. Will try to learn how to use vi properly before editing .bashrc again!
Sam Wane gravatar image Sam Wane  ( 2011-03-21 08:38:50 -0500 )edit
VIM is a hard place to start if you are just getting started with Linux. Check out vimtutor if you are serious about VIM. Also, feel free to use nano or gedit while you are getting familiar with the command line.
mjcarroll gravatar image mjcarroll  ( 2011-03-21 11:48:22 -0500 )edit
gedit works a treat, so much easier, I'll use that for now.
Sam Wane gravatar image Sam Wane  ( 2011-03-26 09:48:36 -0500 )edit

Question Tools

Stats

Asked: 2011-03-20 10:52:19 -0500

Seen: 1,477 times

Last updated: Mar 20 '11