Writing my first ROS package
Writing a simple ROS package with a single subscriber should be simple, no? Well, it was a lot harder and more finicky than I thought. I needed to get the positions of the AR tags through the ar_pose_marker topic published by the ar_track_alvar noded. This is how I did it (after a lot of error messages).
In catkin_ws/src:
You should have a ar_pkg in catkin_ws/src. Go into the ar_pkg/src and create a file with:
If you run catkin_make and get error saying it’s not executable just give the file executable permissions
Add these two lines to the CMakeLists.txt file of ar_pkg
back in /catkin_ws run:
Run the ar tracking from the last post (up until rostopic echo /ar_pose_marker) and then run:
To investigate the message format i ran rosmsg show /ar_pose_marker
and got a report back of all the information published to the pose topic!