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

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

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

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

emacsd 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

Question Tools



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

Seen: 29,489 times

Last updated: Aug 15 '14