Hi, there.. I'm new using ROS and I'm doing the tutorial for creating a package (http://www.ros.org/wiki/ROS/Tutorials/CreatingPackage). I tried to do "roscreate-pkg" and I got this
jesus@ubuntu:~/ros_workspace$ roscreate-pkg prueba1
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: current working directory is not on ROS_PACKAGE_PATH!
Please update your ROS_PACKAGE_PATH environment variable.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Created package directory /home/jesus/ros_workspace/prueba1
Created package file /home/jesus/ros_workspace/prueba1/Makefile
Created package file /home/jesus/ros_workspace/prueba1/manifest.xml
Created package file /home/jesus/ros_workspace/prueba1/CMakeLists.txt
Created package file /home/jesus/ros_workspace/prueba1/mainpage.dox
Please edit prueba1/manifest.xml and mainpage.dox to finish creating your package
jesus@ubuntu:~/ros_workspace$ echo $ROS_PACKAGE_PATH
/opt/ros/electric/stacks
So I realized that my path is placed in root and I want to move it to "/home/jesus/ros_workspace" How can I do this? Thanks
Add this line to your ~/.bashrc directly under the call to /opt/ros/distro/setup.bash:
export ROS_PACKAGE_PATH=~/ros_workspace:${ROS_PACKAGE_PATH}
The best way to change ROS_PACKAGE_PATH is to create an overlay. See this answer (still for diamondback). For electric, just replace all occurrences of diamondback with electric. Also, you can skip the roslocate step at the end since you don't want to install bosch_drivers.
Lorenz I created the overlay but I still have the same warning, the only difference is that now my folder ~/ros_workspace has a setup.bash, setup.sh and setup.zsh, and I replaced source /opt/ros/electric/setup.bash for source ~/ros_workspace/setup.bash thanks for the answers!!
Asked: 2012-03-27 13:33:53 -0500
Seen: 2,935 times
Last updated: Apr 05 '12
ROS Answers is licensed under Creative Commons Attribution 3.0 Content on this site is licensed under a Creative Commons Attribution Share Alike 3.0 license.