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

Ros can't find package

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

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
16

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

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 -0600

emacsd gravatar image

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

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

2 followers

Stats

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

Seen: 29,771 times

Last updated: Aug 15 '14