This repository provides the multi_marker_robot_pose_estimation package, which can be used to estimate the robot pose based on a multiple ArUco markers.
Authors: Jasper van Brakel, Wouter Caarls, Nithish Kumar (SAM XL)
Maintainers: Wouter Caarls, W.Caarls@tudelft.nl
This package hase been developed and tested under ROS2 Jazzy and Ubuntu 24.04 (Noble).
To build from source, clone the latest version from this repository into your workspace:
cd ros_ws/src
git clone https://github.com/sam-xl/multi_marker_robot_pose_estimation.gitUse vcstool to clone other project packages and complete the project workspace:
cd ros_ws/src
vcs import < multi_marker_robot_pose_estimation/.reposInstall the dependencies of the cloned packages using rosdep:
cd ros_ws/src
rosdep install --from-paths . --ignore-src -yFinally, build all packages in the workspace:
colcon buildTo run the pose_estimator node run the following command
ros2 run multi_marker_robot_pose_estimation pose_estimatorTo run the mm_pose_estimator node run the following command
ros2 run multi_marker_robot_pose_estimation mm_pose_estimator --ros-args -r image:=/camera/camera/color/image_raw -r camera_info:=/camera/camera/color/camera_info -p tf_frame_id:=base_link_estimatedProvides a service to estimate the pose based on a single specified ArUco marker.
-
/tf{,_static}(tf2_msgs/msg/TFMessage)
This nodes listens to the TF topics to keep it's own TF Buffer. -
/aruco/markers(aruco_interfaces/msg/ArucoMarkers)
The ArUco marker detections.
get_estimated_pose(multi_marker_robot_pose_estimation_interfaces/srv/EstimatePose)
Gets the estimated pose based on the specifiedmarker_idand frames.
Provides robot pose estimation based on all available aruco marker reference TFs. All TF frames ending in aruco_ref_XXX are used, with XXX being the ArUco marker ID. The node can publish the pose of any frame connected to the camera (default base_link) in any frame connected to the aruco markers (default world). It can optionally publish this pose as a TF under a chosen name.
-
/tf{,_static}(tf2_msgs/msg/TFMessage)
This node listens to the TF topics to keep its own TF Buffer. -
image(sensor_msgs/Image)
The RGB camera image to detect markers on. -
camera_info(sensor_msgs/CameraInfo)
The camera parameters associated withimage.
-
/tf(tf2_msgs/msg/TFMessage)
If desired, the estimated robot pose can be published on TF. -
~/pose(geometry_msgs/PoseWithCovarianceStamped) Robot pose estimate. The covariance is calculated based on the reprojection error of the marker detection. -
~/debug_image(sensor_msgs/Image)
Camera image with superimposed detection information. Only published ifdebugparameter is set.
-
marker_size(double)
Size of the markers in meters. Defaults to0.2. -
aruco_dictionary_id(string)
Dictionary that was used to generate markers. Defaults toDICT_ARUCO_MIP_36h12 -
world_frame_id(string)
Frame in which to publish pose. Defaults toworld. All aruco marker reference positions must be convertible to this frame. -
base_frame_id(string)
Frame of which to publish pose. Defaults tobase_link. The detected camera pose is converted to this frame. -
tf_frame_id(string)
Frame as which to publish TF. If empty, no TF is published. This is useful if another node is already publishing the actualworld->base_frame_idtransformation. -
tf_alpha(double)
Parameter of EMA filter for TF broadcaster. Defaults to0.85. This increases accuracy by averaging over multiple frames, provided that the robot is stationary. -
fps(double)
Maximum frames per second to process. Defaults to5. -
debug(bool)
Publish~/debug_imageto debug pose estimation.
Please report bugs and request features using the Issue Tracker.