ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
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.
2 | No.2 Revision |
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.bashexport
ROS_ROOT=/opt/ros/electric/rosROS_ROOT=/opt/ros/electric/rosexport
PATH=$ROS_ROOT/bin:$PATHPATH=$ROS_ROOT/bin:$PATHexport
PYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATHPYTHONPATH=$ROS_ROOT/core/roslib/src:$PYTHONPATHexport 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.