Ask Your Question
0

ros with Aruco Tags

asked 2015-03-09 07:16:26 -0600

End-Effector gravatar image

updated 2015-03-09 09:52:33 -0600

Hello I'm trying to use this pkg: https://github.com/warp1337/ros_aruco

I installed OpenCV and Aruco 1.2.4.

I tested the Aruco and It works.

Problem:

In step 7 I get this error

[100%] Building CXX object ros_aruco/CMakeFiles/ros_aruco.dir/src/ros_aruco.cpp.o
/home/paulo/catkin_ws/src/ros_aruco/src/ros_aruco.cpp:35:19: fatal error: aruco.h: No such file or directory
#include "aruco.h"
               ^
compilation terminated.
make[2]: *** [ros_aruco/CMakeFiles/ros_aruco.dir/src/ros_aruco.cpp.o] Error 1
make[1]: *** [ros_aruco/CMakeFiles/ros_aruco.dir/all] Error 2
make: *** [all] Error 2
Invoking "make -j8 -l8" failed

I think I'm not understanding what he means by -DARUCO_PATH=/usr/local.

I'm simply using the command: catkin_make --pkg ros_aruco -DARUCO_PATH=/usr/local/include/aruco

And in that location is the aruco.h file. I don't understand how the system isn't finding it.

Maybe I didin't install aruco globaly on my pc, but I don't know how to do that.

Anyone knows how to solve this problem?

Thx so much.

UPDATE:

Thx to gvdhoorn now I can detect the aruco.h file.

Problem I get another Error:

CMakeFiles/ros_aruco.dir/src/ros_aruco.cpp.o: In function `main':

ros_aruco.cpp:(.text+0x10a6): undefined reference to aruco::CvDrawingUtils::draw3dCube(cv::Mat&, aruco::Marker&, aruco::CameraParameters const&)' CMakeFiles/ros_aruco.dir/src/ros_aruco.cpp.o: In functioncvTackBarEvents(int, void)': ros_aruco.cpp:(.text+0x182b): undefined reference to `aruco::CvDrawingUtils::draw3dCube(cv::Mat&, aruco::Marker&, aruco::CameraParameters const&)' collect2: error: ld returned 1 exit status make[2]: [ros_aruco/ros_aruco] Error 1 make[1]: [ros_aruco/CMakeFiles/ros_aruco.dir/all] Error 2 make: ** [all] Error 2 Invoking "make -j8 -l8" failed

Don't know what to do here...

FINAL UPDATE

Problem solved. i HAD A package that was conflicting with this one. I had aruco_ros-master, I'm testing several different packages and that one was the one getting the errors. They have near names.

It compiles with no Errors now. THx you all-

edit retag flag offensive close merge delete

Comments

Hello, i have the same problem, how do i compile cmake files? In the TODO section what should I add?

thx so much

dani gravatar imagedani ( 2017-04-30 12:15:56 -0600 )edit

2 Answers

Sort by » oldest newest most voted
3

answered 2015-03-09 07:42:17 -0600

gvdhoorn gravatar image

I think I'm not understanding what he means by -DARUCO_PATH=/usr/local.

I'm simply using the command: catkin_make --pkg ros_aruco -DARUCO_PATH=/usr/local/include/aruco

And in that location is the aruco.h file. [..]

If you look at ros_aruco/CMakeLists.txt, you'll see that ARUCO_PATH is used as a prefix to form other paths (lines 10 & 11):

[..]
SET(CMAKE_MODULE_PATH ${ARUCO_PATH}/lib/cmake )
SET(ARUCO_INCLUDE_DIRS ${ARUCO_PATH}/include/aruco )
[..]

So ARUCO_PATH should not be set to the full path to aruco.h, but to the directory containing the lib/cmake and include/aruco paths. In most cases, this will be /usr/local (as is mentioned in README.md, under BUILDING AND USAGE, step 7).

If you set ARUCO_PATH to /usr/local/include/aruco, this will eventually cause ARUCO_INCLUDE_DIRS to be set to /usr/local/include/aruco/include/aruco, which is obviously incorrect. The same is true for all other variables that prefix ARUCO_PATH.

edit flag offensive delete link more
0

answered 2015-05-18 06:11:07 -0600

Hi End-Effector,

I am trying to build this package but I am having problems. I have followed all the steps of the "BUILDING AND USAGE" section but I get this error when I use the catkin_make command (step 7):

/home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:50:1: error: ‘VideoCapture’ does not name a type /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp: In function ‘int main(int, char)’: /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:131:2: error: ‘TheVideoCapturer’ was not declared in this scope /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:152:2: error: ‘namedWindow’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:153:2: error: ‘namedWindow’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:160:2: error: ‘createTrackbar’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:161:2: error: ‘createTrackbar’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:210:5: error: ‘Rodrigues’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:267:5: error: ‘imshow’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:268:5: error: ‘imshow’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:274:7: error: ‘waitKey’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp: In function ‘void cvTackBarEvents(int, void)’: /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:313:5: error: ‘imshow’ is not a member of ‘cv’ /home/laboratorio/catkin_ws/src/ros_aruco/ros_aruco/src/ros_aruco.cpp:314:5: error: ‘imshow’ is not a member of ‘cv’ make[2]: * [ros_aruco/ros_aruco/CMakeFiles/ros_aruco.dir/src/ros_aruco.cpp.o] Error 1 make[1]: [ros_aruco/ros_aruco/CMakeFiles/ros_aruco.dir/all] Error 2 make: * [all] Error 2 Invoking "make" failed

Did you get the same error? How did you get it work? I don't know why I get this error because I have followed all the steps. It would be great if you could help me. Thank you!

edit flag offensive delete link more

Comments

I'm not using that package any more.

This one is better friend: http://wiki.ros.org/ar_sys

End-Effector gravatar imageEnd-Effector ( 2015-07-16 11:07:48 -0600 )edit

Your Answer

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

Add Answer

Question Tools

1 follower

Stats

Asked: 2015-03-09 07:16:26 -0600

Seen: 1,740 times

Last updated: Mar 09 '15