This is for testing ... not sure what value it is to others. I am just trying out some ros2 things.
colcon build --packages-select dummy_pkg
ros2 run dummy_pkg <node>
dummy_node
: doesn't do anythinglidar_node
: publishes aLaserScan
messagetransform_node
: publishes aTransformedStamped
message
ros2 launch dummy_pkg <script>
tf_launch
rosbag_launch
: runimu_node
andurg_node
and stores messages in a bag
Node(
package="foxglove_bridge",
executable="foxglove_bridge",
name="foxglove_bridge",
parameters=[
{"port": 8765},
{"address": "0.0.0.0"},
{"tls": False},
{"topic_whitelist": [".*"]},
{"send_buffer_limit": 10000000},
{"use_sim_time": False},
{"num_threads": 0}
]
)
WARNING: There are already AprilTag
apt
packages available and I don't know what the difference is:
sudo apt install ros-jazzy-apriltag
UMichsudo apt install ros-jazzy-apriltag-ros
Christian Rauchsudo apt install ros-jazzy-apriltag-detector
Bernd Pfrommer
image_transport
tutorials for ROS2- ROS2 Apriltag detector: Find apriltags in image
- subscribe:
image_rect
(raw
):sensor_msgs/msg/Image
image_rect/compressed
:sensor_msg/msg/CompressedImage
camera_info
:sensor_msgs/msg/CameraInfo
- publish:
tf
:tf2_msgs/msg/TFMessage
andchild_frame_id
is set totag<family>:<id>
(e.g.,tag36h11:21
)detections
:apriltag_msgs/msg/AprilTagDetectionArray
- subscribe:
- ROS2 Apriltag Messages: Broadcast messages of tags
AprilTagDetection
: single tag detectionAprilTagDetectionArray
: multiple tag detectionsPoint
: 2D x,y point used in above messages
- Apriltag Draw Marker on Image: Debug, show Apriltag found in image
- publish:
tag_detections_image
- subscribe:
image
:image_transport
detections
:AprilTagDetectionArray
- parameters:
overlay_mode
:string
, draw axes on image, default isaxes
image_transport
: default israw
- publish:
- libcamera simple camera code: maybe useful for writing C++ libcamera driver?
$ apt search apriltag
...
apriltag/noble 3.3.0-2.1build1 arm64
AprilTags Visual Fiducial System
libapriltag-dev/noble 3.3.0-2.1build1 arm64
AprilTags Visual Fiducial System
python3-apriltag/noble 3.3.0-2.1build1 arm64
AprilTags Visual Fiducial System
$ sudo apt info ros-jazzy-apriltag-ros
Package: ros-jazzy-apriltag-ros
Version: 3.2.2-1noble.20240607.222731
Priority: optional
Section: misc
Maintainer: Christian Rauch <[email protected]>
Installed-Size: 455 kB
Depends: libc6 (>= 2.34), libconsole-bridge1.0 (>= 1.0.1+dfsg2), libgcc-s1 (>= 3.3.1), libopencv-calib3d406t64 (>= 4.6.0+dfsg), libopencv-core406t64 (>= 4.6.0+dfsg), libstdc++6 (>= 13.1), ros-jazzy-apriltag, ros-jazzy-apriltag-msgs, ros-jazzy-cv-bridge, ros-jazzy-image-transport, ros-jazzy-rclcpp, ros-jazzy-rclcpp-components, ros-jazzy-sensor-msgs, ros-jazzy-tf2-ros, ros-jazzy-ros-workspace
Download-Size: 117 kB
APT-Sources: http://packages.ros.org/ros2/ubuntu noble/main arm64 Packages
Description: AprilTag detection node
Copyright (c) 2024 Reckless Ted's Funland
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.