Ask Your Question
0

Failure in configuring ROS environment

asked 2014-04-01 17:39:20 -0500

danmianjing_00 gravatar image

updated 2016-10-24 08:33:19 -0500

ngrennan gravatar image

I'm installing Groovy on ubuntu 12.04,when I'm configuring the environment,the following error occurs,(before this command it runs smoothly )

bash:/opt/ros/hydro/setup.bash:no such file or directory.

I installed Fuerte a few days ago ,but before I'm configuring the environment for Groovy ,I have uninstalled it. I have tried to open the file to check whether it exist or not ,put the command gedit /opt/ros/hydro/setup.bash on the terminal,it was opened ,but it was empty. What can I do to solve it ,thank you!

edit retag flag offensive close merge delete

Comments

gedit /opt/ros/hydro/setup.bash will open with empty doc, no matter if the file exists and is empty or does not exist. Go to the path in your file system (cd /opt cd ros cd hydro) and check (ls) whether the file exists...

Wolf gravatar imageWolf ( 2014-04-01 20:43:55 -0500 )edit

but how can I solve my problem to configure the ros environment successfully

danmianjing_00 gravatar imagedanmianjing_00 ( 2014-04-01 22:28:48 -0500 )edit

Does the file or the entire folder (/opt/ros/hydro) exist? If not something might have gone wrong during sudo apt-get install or so, i. e. reinstall...

Wolf gravatar imageWolf ( 2014-04-01 22:34:25 -0500 )edit

the entire folder (/opt/ros/hydro) does not exist, Do I have to reinstall ROS ? And I want to know the importance of the configuration of the evironment.

danmianjing_00 gravatar imagedanmianjing_00 ( 2014-04-01 23:25:34 -0500 )edit

ROS is not installed in this case, try starting again for scratch with the steps noted here http://wiki.ros.org/hydro/Installation/Ubuntu

Wolf gravatar imageWolf ( 2014-04-02 01:17:43 -0500 )edit

2 Answers

Sort by ยป oldest newest most voted
2

answered 2014-04-02 03:15:34 -0500

demmeln gravatar image

updated 2014-04-02 03:45:06 -0500

If you want to use groovy, not hydro, you should source the file /opt/ros/groovy/setup.bash not /opt/ros/hydro/setup.bash.

Edit:

Please open your the file ~/.bashrc in an editor and check the lines that relate to ros (likely at the end of the file). There should be one line source /opt/ros/groovy/setup.bash. If there are multiple, or lines containting hyrdo, like source /opt/ros/hydro/setup.bash, then remove them and try again by opening a fresh terminal.

edit flag offensive delete link more

Comments

the following are my cammands,I followed http://wiki.ros.org/groovy/Installation/Ubuntu echo "source /opt/ros/groovy/setup.bash" >> ~/.bashrc source ~/.bashrc when I entered the second command,error occurs,said bash:/opt/ros/hydro/setup.bash:no such file or directory.I 'm confused about it.

danmianjing_00 gravatar imagedanmianjing_00 ( 2014-04-02 03:23:29 -0500 )edit

thank you , the problem is solved. somenting else ,I want to know the importance of the configuration of the evironment.

danmianjing_00 gravatar imagedanmianjing_00 ( 2014-04-02 03:57:41 -0500 )edit

If the problem is solved, please mark one of the answers as accepted. If you have another question, open up another question. You will have to be a bit more specific than "I want to know the importance of the configuration of the evironment." though.

demmeln gravatar imagedemmeln ( 2014-04-02 04:01:45 -0500 )edit
0

answered 2014-04-02 01:21:03 -0500

Wolf gravatar image

gedit /opt/ros/hydro/setup.bash will open with empty document, no matter if the file exists and is empty or does not exist. Go to the path in your file system (cd /opt cd ros cd hydro) and check (ls ) whether the file exists... Most likely the entire folder /opt/ros/hydro will not exist. If that's the case something went wrong during the installation. Try repeating the steps mentioned in http://wiki.ros.org/hydro/Installatio... and watch carefully for possible errors..

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-04-01 17:39:20 -0500

Seen: 1,368 times

Last updated: Apr 02 '14