Ask Your Question
0

I found most of the ROS packages are in home/user/ros but the latest in /opt/ros/

asked 2012-01-04 17:10:23 -0500

Hi all,

After I finish the beginner level tutorial actually I am a bit lost.. I don't have the 2dnav_pr2 package. I start wandering around the forum. Based on http://www.ros.org/wiki/pr2_2dnav_gazebo/Tutorials/Simulating%20the%202dnav%20Stack I installed cturtle, diamondback and electric packages.

Then my roscd will lead me to /opt/ros/ instead of /home/user/ros. I found that the last three packages are installed to /opt/ros/. Could anyone explain me the setup.sh?

Now if I run . setup.sh in the /home/user/ros, the roscd cannot be found. quite confusing about the situation. Hope some one help me out and give me instructions on how to perform a simulation...

edit retag flag offensive close merge delete

Comments

These days, `setup.sh` is recommended only for non-bash shells. If you source `setup.bash` instead, it will define functions like `roscd`.
joq gravatar image joq  ( 2012-01-05 01:59:34 -0500 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-01-04 23:12:07 -0500

karthik gravatar image

Hi, You could refer to the answer i posted here which kinda explains how ROS finds its packages and the mistake you could avoid initially.

Hope this helps, Karthik

edit flag offensive delete link more

Comments

Hi thanks karthik. I think the first beginning when I come to the enviroment configuration I encountered some problem and I changed the PACKAGE_PATH to /home/user/ros/ros. For these three packages, do i need to reinstall them? I think i spent hours get them installed...or can I just change some parameters to let them work?
tianb03 gravatar image tianb03  ( 2012-01-04 23:25:59 -0500 )edit
I suggest you to have ros_workspace as given in the 1st tutorial and setup the environment. So that even your later downloaded packages do not have this problem. Now you can copy them to a workspace folder n setup the envi
karthik gravatar image karthik  ( 2012-01-05 04:13:45 -0500 )edit

Your Answer

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

Add Answer

Question Tools

Stats

Asked: 2012-01-04 17:10:23 -0500

Seen: 234 times

Last updated: Jan 04 '12