Software
localization_msgs_tools
From github.com/oKermorgant/localization_msgs_tools (opens in a new tab)
- Navigation and mapping
- Tool
- MIT
ROS 2 nodes that convert localization messages: one forwards pose messages to the tf tree, the other adds or replaces covariance in localization messages.
Facts
- GitHub stars
- 0read on 28 Nov 2026
- Last update
- 13 Nov 2026Newest commit on main
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Intermediate
Checked on GitHub on 28 Nov 2026.
Licenses
- Code
- MIT (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (MIT) at commit 968849e (opens in a new tab), on 14 Nov 2026.
- Commercial use
- Yes
At a glance
- What it is
- Pose_to_tf subscribes to a pose topic and publishes it on /tf, useful to simulate perfect localization from a ground truth topic.
- Pose_to_tf accepts Pose, PoseStamped, Transform, TransformStamped, Odometry and Imu messages, with optional inverse publishing.
- Pose_to_tf frame parameters fill in frames missing from incoming messages and override frames from them when set.
- With_covariance adds or replaces covariance in pose, twist, IMU, NavSatFix and odometry messages, which helps with simulated or covariance-free data.
- With_covariance takes several inputs, each with its own input and output topics and covariance vectors, configured like robot_localization nodes.
- Covariance parameters of with_covariance can be changed at runtime with ros2 param set.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- No robot on Robotheca uses it yet.
- Licence
- MIT. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 13 Nov 2026.
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/oKermorgant/localization_msgs_tools (opens in a new tab)
- The version Robotheca read968849e (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca read the repository at two versions: the summary at 73ffbb9 and the facts and the README at 968849e (read on 28 Nov 2026).
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by @oKermorgant, at commit 968849e, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
Bridge and adapt messages for robot localization
This package offers two nodes to convert various localization-related messages.
pose_to_tf: forward pose messages to tf tree
This node subscribes to a pose topic and forwards it to /tf.
It can be used to simulate perfect localization from a ground truth topic published e.g. by a simulator. Supported messages are:
geometry_msgs/Posegeometry_msgs/PoseStampedgeometry_msgs/Transformgeometry_msgs/TransformStampednav_msgs/Odometrysensor_msgs/Imu(assumes null translation)
Parameters
topic: topic to subscribe to (defaults topose_gt)parent_frame: parent frame to be used in published messages (defaults toworld)child_frame: child frame to be used in tf publisher (defaults to empty)inverse(default False): publish the inverse of the received transform, can be useful to calibrate sensors
The frame parameters are only to complement messages that do not include the information:
PoseandTransformdo not convey any frame, so both parameters are required;PoseStampedandImuonly conveychild_framein the header, theparent_frameparameter is thus mandatory;TransformStampedandOdometryconvey bothchild_frameexplicitely andparent_framein the header.
In any case, if frame parameters are not empty they will override the frames from the incoming messages.
Running the node
The node is available:
- as an executable:
pose_to_tf - as a component:
localization_msgs_tools::Pose2TF
with_covariance: add covariance to localization messages
This node is meant to bridge ROS messages by adding or replacing covariance info. A classical use is messages coming out of simulation that may have no covariance. Some frameworks or sensors also publish covariance-free messages, making them unsuitable for use with classical ROS tools. It can also help tuning the covariance at runtime.
Supported messages are:
geometry_msgs/PoseWithCovarianceStamped- can also take in
geometry_msgs/Poseorgeometry_msgs/PoseStamped
- can also take in
geometry_msgs/TwistWithCovarianceStamped- can also take in
geometry_msgs/Twistorgeometry_msgs/TwistStamped
- can also take in
sensor_msgs/Imusensor_msgs/NavSatFixnav_msgs/Odometry
Parameters
Similarly to the well-known robot_localization nodes, the with_covariance node takes in possibly various messages, each of them having to be associated:
- an input type, defined by the name of the parameter (
pose0,imu0, etc.) - input and output topics
- covariance information as length-3 vectors
xyzandrpyfor poselinvelandangvelfor twistaccelfor acceleration- covariances that are not set from the parameters will be copied from the incoming message, if any
- covariance parameters can be changed at runtime
frame_idif they are not part of the incoming messages (e.g.PoseandTwist)
An example is provided for all supported messages:
/**:
ros__parameters:
# subscribe to some Pose, publish as PoseWithCovarianceStamped
pose0: pose_gt
pose0.frame_id: base_link
pose0.out: pose_with_cov
pose0.cov:
# linear covariance
xyz: [.1, .1, .1]
# angular covariance
rpy: [.1, .1, .1]
# IMU
imu0: imu_raw
imu0.out: imu_with_cov
imu0.cov:
# angular covariance
rpy: [.1, .1, .1]
# angular velocity covariance
angvel: [.1, .1, .1]
# acceleration covariance
accel: [.1, .1, .1]
# Odometry
odom0: odom_raw
odom0.out: odom_with_cov
odom0.cov:
# xyz: [] # do not change incoming covariance for pose
# rpy: []
linvel: [.1, .1, .1]
angvel: [.1, .1, .1]
# Some kind of Twist
twist0: twist_raw
twist0.out: twist_with_cov
twist0.frame_id: base_link
twist0.cov:
linvel: [.1, .1, .1]
angvel: [.1, .1, .1]
# NavSat
navsat0: navsat_raw
navsat0.out: navsat_with_cov
navsat0.cov.xyz: [5.,5.,1.]
Changing covariances at runtime
All covariance parameters can be updated at runtime by setting the corresponding parameter:
ros2 param set /with_covariance pose0.cov.xyz [.1,.1,.1]
Running the node
The node is available:
- as an executable:
with_covariance - as a component:
localization_msgs_tools::WithCovariance
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.