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

Revision history [back]

click to hide/show revision 1
initial version

If you're using electric, run

vim ~/setup.sh

and add the following lines (this is what mine looks like, you may need to change yours slightly)

!/bin/sh

source /opt/ros/electric/setup.bash export ROS_ROOT=/opt/ros/electric/ros export PATH=$ROS_ROOT/bin:$PATH export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH export ROS_PACKAGE_PATH=/opt/ros/electric/stacks:~/ros_workspace:$ROS_PACKAGE_PATH

then, execute

. ~/setup.sh

If you're package is in /opt/ros/electric/stacks or ~/ros_workpace, ROS should be able to find it.

If you're using electric, run

vim ~/setup.sh

and add the following lines (this is what mine looks like, you may need to change yours slightly)

!/bin/sh

#!/bin/sh

source /opt/ros/electric/setup.bash /opt/ros/electric/setup.bash

export ROS_ROOT=/opt/ros/electric/ros ROS_ROOT=/opt/ros/electric/ros

export PATH=$ROS_ROOT/bin:$PATH PATH=$ROS_ROOT/bin:$PATH

export PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATH

export ROS_PACKAGE_PATH=/opt/ros/electric/stacks:~/ros_workspace:$ROS_PACKAGE_PATH

then, execute

. ~/setup.sh

If you're package is in /opt/ros/electric/stacks or ~/ros_workpace, ROS should be able to find it.