|
|
@@ -16,9 +16,10 @@ This project was created as an project thesis (MSY-Master). |
|
|
|
|
|
|
|
Usb_cam is a frequently used ros driver for V4L USB cameras. A detailed description can be found here: http://wiki.ros.org/usb_cam |
|
|
|
|
|
|
|
|
|
|
|
sudo apt get install ros-<ros2-distro>-usb-cam |
|
|
|
|
|
|
|
Important: It's necessary to work with compressed images. Therefor you can use the image_transport library. A detailed description can be found here: http://wiki.ros.org/image_transport |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
## Running the code |
|
|
@@ -30,8 +31,23 @@ For an easy start there is already created a launch file. All required parameter |
|
|
|
cd launch/ |
|
|
|
ros2 launch aruco_launch.py |
|
|
|
|
|
|
|
![Bild 1](./Images/Topics.jpg "ArUco Marker attached on robot") |
|
|
|
An overview about the running topics is illustrated in the next picture. |
|
|
|
|
|
|
|
![Bild 1](./Images/Topics.jpg "started topics") |
|
|
|
|
|
|
|
## Output |
|
|
|
|
|
|
|
- topic: `/aruco/aruco_poses` |
|
|
|
|
|
|
|
The aruco_detector_node publishes a custom ros2 message. |
|
|
|
|
|
|
|
int64[] marker_ids |
|
|
|
geometry_msgs/Pose[] poses |
|
|
|
|
|
|
|
The array `marker_ids` contains all detected id of the ArUco Markers. The array `poses` contains all poses of the detected ArUco Markers. This message will be published to the topic . |
|
|
|
|
|
|
|
## Outputs |
|
|
|
- topic: `/aruco/aruco_output_images/compressed` |
|
|
|
|
|
|
|
To this topic will be published the output images. In this images the detected ArCuo Marker is highlighted and the pose is drawn using a coordinate system. |
|
|
|
|
|
|
|
![Bild 1](./Images/Output_pic.jpg "started topics") |