Ask Your Question
0

Ros can't find package

asked 2014-08-15 07:20:59 -0500

ameni mighri gravatar image

Hi, I am working with ros hydro ubuntu 12.4.In my catkin-workspace i have my kinect packge ( open cv & kinect line follower), ls gives me the list of file in catkin_ws , i can build catkin successfully.But , when try to run the node I get this message :[rospack] Error: stack/package kinect not found witch is the same with rospack find kinect.what can i do??

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
8

answered 2014-08-15 07:40:26 -0500

t.pimentel gravatar image

Did you source the devel/setup.bash file?

$ cd <path-to-catkin_ws>
$ source devel/setup.bash
edit flag offensive delete link more
1

answered 2014-08-15 14:48:12 -0500

dj0405 gravatar image

updated 2014-08-15 14:48:30 -0500

Try to source the ROS environment parameters

echo "source <path_to_workspace>/devel/setup.bash" >> ~/.bashrc

Close the current terminal and run a new one. You should see the node in the list. If you don't want to close the current terminal, do this:

source ~/.bashrc

Note: Pimentel answer is also correct, but you have to do it everytime you open a new terminal. If you added the source command to the bashrc, it will be loaded automatically.

edit flag offensive delete link more

Your Answer

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

Add Answer

Question Tools

2 followers

Stats

Asked: 2014-08-15 07:20:59 -0500

Seen: 15,372 times

Last updated: Aug 15 '14