Ask Your Question
1

ar_pose message subscriber

asked 2012-02-27 03:04:18 -0500

erpa gravatar image

updated 2014-01-28 17:11:30 -0500

ngrennan gravatar image

Hi, I am trying to write a simple subscriber in order to read the messages published by ar_pose (as in the example 4.4 of http://www.ros.org/wiki/ar_pose) but I am having some trouble in finding how to import in my c++ code the definition of the message used. In particular I can't find a way to import the definition of ar_pose::ARMarker.

edit retag flag offensive close merge delete

1 Answer

Sort by » oldest newest most voted
1

answered 2012-02-27 03:47:19 -0500

Procópio gravatar image

Hi, You can include these headers:

#include <ar_pose/ARMarker.h>

or

#include <ar_pose/ARMarkers.h>

depending if you want to work with a single or multiple markers.

The bag files in the ar_pose page are old, and have to be fixed with a command rosbag fix, there is also a problem with the frame transformations (check ar_pose track), therefore I would recommend you to print a marker and test it with an USB camera or other. I think it will be easier. regards.

edit flag offensive delete link more

Comments

That was exactly what I was trying, and for some unknown reason it wasn't working. Now evrything is ok, thank you!

erpa gravatar image erpa  ( 2012-02-29 19:58:47 -0500 )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: 2012-02-27 03:04:18 -0500

Seen: 464 times

Last updated: Feb 27 '12