Ask Your Question
0

problem in rospack find my package..

asked 2014-10-27 14:46:58 -0500

ASHISH CHHONKAR gravatar image

updated 2014-10-27 15:50:55 -0500

ahendrix gravatar image

I am using Indigo version of ROS. I just tried to create a package by reading ros tutorial. I am using rosbuild tool for creating. but i got a problem when executing this command "rospack find ". i am new in ROS, please tried to elaborate more. my terminal output as follow:

root@CHHONKAR:/home/chhonkar/Desktop# roscreate-pkg mypack std_msgs rospy roscpp
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
WARNING: current working directory is not on ROS_PACKAGE_PATH!
Please update your ROS_PACKAGE_PATH environment variable.
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Created package directory /home/chhonkar/Desktop/mypack
Created include directory /home/chhonkar/Desktop/mypack/include/mypack
Created cpp source directory /home/chhonkar/Desktop/mypack/src
Created package file /home/chhonkar/Desktop/mypack/Makefile
Created package file /home/chhonkar/Desktop/mypack/manifest.xml
Created package file /home/chhonkar/Desktop/mypack/CMakeLists.txt
Created package file /home/chhonkar/Desktop/mypack/mainpage.dox

Please edit mypack/manifest.xml and mainpage.dox to finish creating your package
root@CHHONKAR:/home/chhonkar/Desktop# rospack profile 
Full tree crawl took 0.018203 seconds.
Directories marked with (*) contain no manifest.  You may
want to delete these directories.
To get just of list of directories without manifests,
re-run the profile with --zombie-only
-------------------------------------------------------------
0.017421   /opt/ros/indigo/share
0.000042 * /opt/ros/indigo/share/man
0.000030 * /opt/ros/indigo/share/doc
0.000007 * /opt/ros/indigo/share/man/man1
0.000005 * /opt/ros/indigo/share/doc/liborocos-kdl
root@CHHONKAR:/home/chhonkar/Desktop# rospack find mypack
[rospack] Error: package 'mypack' not found

please tell me how to update ROS PATH. I already seen the ROS PACKAGE PATH but syntax is not clear to me...

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-10-27 15:53:32 -0500

ahendrix gravatar image

You can add a package directory to your ROS_PACKAGE_PATH using the export command in your shell:

export ROS_PACKAGE_PATH="$ROS_PACKAGE_PATH:/home/chhonkar/Desktop/mypack"

This sets ROS_PACKAGE_PATH to the previous ROS_PACKAGE_PATH, and appends the path seraparator (a colon :) and the path to your new package.

edit flag offensive delete link more

Comments

thanks for your reply...... this sort out my problem successfully.

ASHISH CHHONKAR gravatar imageASHISH CHHONKAR ( 2014-10-30 00:58:43 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-10-27 14:46:58 -0500

Seen: 364 times

Last updated: Oct 27 '14