ros package can NOT find, error with [rospack]
I just installed ros kinetic on ubuntu 16.04.2. I am trying to run kinect v2, but I failed with several attempts
when I run
'abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~/libfreenect2/build/bin$ ./Protonect'
, it works fine, but I can not run the following codes
'roscore'
'rosrun kinect2_viewer kinect2_viewer sd cloud'
'rosrun kinect2_bridge kinect2_bridge'
I always get this error
'abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~$ rosrun kinect2_viewer kinect2_viewer sd cloud'
'[rospack] Error: package 'kinect2_viewer' not found'
even I tried this, but same error
abdulrahman@abdulrahman-ThinkPad-X230-Tablet:~$ rosrun kinect2_bridge kinect2_bridge _reg_method:=cpu
[rospack] Error: package 'kinect2_bridge' not found
any one can help please ?????
Asked by Abdu on 2017-06-02 13:09:18 UTC
Answers
I solved it, its silly mistake
When I run gedit ~/.bashrc
in a terminal, there is no path in .bashcr file.
I just added the following two lines at the end of the file. Note/ this is for my path source, the path must be slightly different. The data between <.....>
should be different.
source /opt/ros/<kinetic>/setup.bash
source /<home/abdulrahman/catkin_ws>/devel/setup.bash
Asked by Abdu on 2017-06-03 10:48:44 UTC
Comments