PDA

View Full Version : workspace in ros



light86
11-27-2012, 07:01 AM
Hi at all i've create my workspace i do this command
echo " source ~/fuerte_workspace/setup.bash" >> ~/.bashrc
.~/.bashrc

but i've this answer
bash: /home/adel/fuerte_workspace/setup.bash: Permission denied

Thank you

jwatte
11-27-2012, 12:12 PM
What's the output of "ls -l /home/adel/fuerte_worksspace/setup.bash" ?

Btw: The command you give makes it so that every shell you ever open is set up for that workspace. That may be what you want, but if it isn't, don't put that into your .bashrc.

light86
11-28-2012, 03:13 AM
Hi I want every shell you ever open is set up for that workspace
Thank you.

Peter_heim
11-28-2012, 03:50 AM
you are trying to run setup.bash in your workspace which wont be there
you need to add a package path
try adding this to the .bashrc file after the reference to setup.bash

export ROS_PACKAGE_PATH=/home/peter/ros_workspace:$ROS_PACKAGE_PATH

light86
11-29-2012, 03:15 AM
Hi Thank you
Please how I can add my environnement variable in .bashrc
Thank you

Peter_heim
11-29-2012, 04:59 AM
Hi
Here is a copy of the end of my .bashrc file
just add what you need
export ROS_ROOT=/opt/ros/electric/ros
export ES_ROOT=/home/peter/ros/ES_ROOT
export MONO_PATH=/home/peter/ros/ES_ROOT
#export PATH=$ROS_ROOT/bin:$PATH
#export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH
export ROS_PACKAGE_PATH=/home/peter/ros:$ROS_PACKAGE_PATH
export POS_IP=10.0.0.1
export ROS_HOSTNAME=10.0.0.1
export ROS_MASTER_URI=http://10.0.0.6:11311
export PATH=$PATH:/home/peter/ros/android-sdk-linux_x86/tools
#export ROS_PACKAGE_PATH=~/ros_workspace:/home/peter/ros
#export ROS_WORKSPACE=~/ros_workspace

light86
11-29-2012, 07:20 AM
Hi Thank you