Hello everyone,
I need to read some tags using the kinect. However, even after I installed the dependencies and built the package (commands `rosdep install ar_pose -i` and `rosmake ar_pose`), when I try to launch the test:
roslaunch ar_pose ar_pose_single.launch
I receive the following error:
ERROR: cannot launch node of type [ar_pose/ar_single]: can't locate node [ar_single] in package [ar_pose]
I cloned the package from [ar_tools](http://wiki.ros.org/ar_tools) and built in my catkin workspace.
Can anyone help me? I'm working with ROS Indigo on Ubuntu 14.04.
***EDIT1:***
Dan, thanks again for your help. I already tried that with no success, I still get the same error when I try to catkin_make. I even erased my build and devel folders to build up my workspace again.
***EDIT2:***
Dan,
Thanks for your answer. However, I'm still experiencing a problem. When I try to `catkin_make install` I receive the following error:
Do you know what could be the problem?
Linking CXX executable /home/leandrosavieira/catkin_ws/devel/lib/ar_pose/ar_multi
Linking CXX executable /home/leandrosavieira/catkin_ws/devel/lib/ar_pose/ar_single
CMakeFiles/ar_single.dir/src/ar_single.cpp.o: na função `ar_pose::ARSinglePublisher::getTransformationCallback(boost::shared_ptr> const> const&)':
ar_single.cpp:(.text+0x318d): referência indefinida para `_IplImage::_IplImage(cv::Mat const&)'
CMakeFiles/ar_multi.dir/src/ar_multi.cpp.o: na função `ar_pose::ARMultiPublisher::getTransformationCallback(boost::shared_ptr> const> const&)':
ar_multi.cpp:(.text+0x2569): referência indefinida para `_IplImage::_IplImage(cv::Mat const&)'
collect2: error: ld returned 1 exit status
collect2: error: ld returned 1 exit status
make[2]: ** [/home/leandrosavieira/catkin_ws/devel/lib/ar_pose/ar_single] Erro 1make[2]:
** [/home/leandrosavieira/catkin_ws/devel/lib/ar_pose/ar_multi] Erro 1
make[1]: ** [ar_tools/ar_pose/CMakeFiles/ar_multi.dir/all] Erro 2
make[1]: ** Esperando que outros processos terminem.
make[1]: ** [ar_tools/ar_pose/CMakeFiles/ar_single.dir/all] Erro 2
make: ** [all] Erro 2
Invoking "make install -j4 -l4" failed
***EDIT 3:***
I tryed what Dan said but I already had `libopencv-dev` installed in my computer. Therefore, I'm still with the same problem. However, I never used Opencv before so I don't really know if I have to have anything else installed. Do I need to install it from [here](http://opencv.org/downloads.html).
***EDIT 4:***
I think I got it right now after building [vision_opencv](http://wiki.ros.org/vision_opencv) in the catkin_workspace. Opencv was missing in my computer even though I had it in the `share` folder. It now compiles with no errors. Thanks for all the help Dan and Procópio.
↧