sábado, 12 de marzo de 2011

When roscd FAILS

Today I tried to use roscd just after running the roscore program, and the terminal said that it didn't know any command named roscd. Well after looking up at the commands on the setup.sh and the different .bashrc files (user and root) I discovered that they were in order.... and the terminal didn't recognize the roscd command.

The solution to this problem is to resource the rosbash package to your .basrch file. Yo can do this by typing this command:


export ROS_ROOT=/opt/ros/diamondback/ros:/
export PATH=${ROS_ROOT}/bin:${PATH}
export PYTHONPATH=${ROS_ROOT}/core/roslib/src:${PYTHONPATH}
export ROS_PACKAGE_PATH=/opt/ros/diamondback/stacks
if [ ! "$ROS_MASTER_URI" ] ; then export ROS_MASTER_URI=http://localhost:11311 ; fi
source ${ROS_ROOT}/tools/rosbash/rosbash

Now the problem is to solve it for root.

----

Ok i solved the problem.

I need to change the file manually of the setup.sh located at opt/ros/cturtle.

I only needed to change cturtle by diamondback on that file.

It looked like this:

export ROS_ROOT=/opt/ros/cturtle/ros:/
export PATH=${ROS_ROOT}/bin:${PATH}
export PYTHONPATH=${ROS_ROOT}/core/roslib/src:${PYTHONPATH}
export ROS_PACKAGE_PATH=/opt/ros/cturtle/stacks
if [ ! "$ROS_MASTER_URI" ] ; then export ROS_MASTER_URI=http://localhost:11311 ; fi

And it needed to be change to this:

export ROS_ROOT=/opt/ros/diamondback/ros:/
export PATH=${ROS_ROOT}/bin:${PATH}
export PYTHONPATH=${ROS_ROOT}/core/roslib/src:${PYTHONPATH}
export ROS_PACKAGE_PATH=/opt/ros/diamondback/stacks
if [ ! "$ROS_MASTER_URI" ] ; then export ROS_MASTER_URI=http://localhost:11311 ; fi

It solve the problem

No hay comentarios:

Publicar un comentario