Skip to content

Software

message_tf_frame_transformer

By Institut für Kraftfahrzeuge, RWTH Aachen, ika, Germany (checked on github.com/ika-rwth-aachen (opens in a new tab)), from github.com/ika-rwth-aachen/message_tf_frame_transformer (opens in a new tab)

  • Middleware
  • Tool
  • MIT

A ROS node that transforms messages of many types into a different coordinate frame, so other nodes can use data in a frame they expect without changing their code.

Facts

GitHub stars
19read on 28 Nov 2026
Last update
31 Oct 2026Newest commit on main
Maintenance
Activea commit in the last 90 days
Difficulty
Beginner

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 da58723 (opens in a new tab), on 31 Oct 2026.

Commercial use
Yes

At a glance

What it is
  • Transforms arbitrary ROS messages to a target coordinate frame, without modifying the source code of other nodes.
  • Takes an input topic and publishes the transformed messages to an output topic.
  • Requires only the target frame ID; the source frame ID is needed only for non-stamped messages without a header.
  • Optional grace period lets it wait a set number of milliseconds for a transform to become available before dropping a message.
  • Explicitly supports geometry message types such as points, poses, quaternions, transforms, vectors and wrenches, plus PointCloud2.
  • Other message types can be added by including headers and defining them in a macro file.

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 31 Oct 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

Facts read at commit da58723

Robotheca read the repository at two versions: the summary at 8d6f06c and the facts and the README at da58723 (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 Institut für Kraftfahrzeuge, RWTH Aachen, ika, at commit da58723, under MIT (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

message_tf_frame_transformer

The message_tf_frame_transformer package provides a ROS node to transform messages of arbitrary type to a different coordinate frame. This can be helpful if you cannot or do not want to modify the source code of other ROS nodes that require your data to be valid in a specific coordinate frame. Simply launch the message_tf_frame_transformer node and transform arbitrary messages to a target coordinate frame.

Installation

The message_tf_frame_transformer package is released as an official ROS package and can easily be installed via a package manager.

sudo apt install ros-$ROS_DISTRO-message-tf-frame-transformer

If you would like to install message_tf_frame_transformer from source, simply clone this repository into your ROS workspace. All dependencies that are listed in the ROS package.xml (opens in a new tab) can be installed using rosdep (opens in a new tab).

# message_tf_frame_transformer$
rosdep install -r --ignore-src --from-paths .

# workspace$
colcon build --packages-up-to message_tf_frame_transformer --cmake-args -DCMAKE_BUILD_TYPE=Release
docker-ros

message_tf_frame_transformer is also available as a Docker image, containerized through docker-ros (opens in a new tab).

docker run --rm ghcr.io/ika-rwth-aachen/message_tf_frame_transformer:latest # or distro-specific tags, e.g., :ros2-rolling
Usage

In order to transform messages on topic $INPUT_TOPIC to frame $TARGET_FRAME_ID and publish them to topic $OUTPUT_TOPIC, the message_tf_frame_transformer node can be started with the following topic remappings and parameter setting. Only the target_frame_id parameter is required. The source_frame_id parameter is only required for non-stamped messages without an std_msgs/Header (opens in a new tab). The topics default to ~/input and ~/transformed in the node's private namespace.

The optional parameter transform_lookup_grace_period specifies a maximum duration in milliseconds to wait for a transform to become available. If the transform is not available within this time, the message is dropped and an error message is emitted. This is useful for cases where the sensor pipeline is faster than the /tf pipeline. Because waiting for a transform stalls the reader, this mechanism is suitable to resolve small timing issues, not for buffering large numbers of messages. The default value is 0.

ros2 run message_tf_frame_transformer message_tf_frame_transformer --ros-args \
  -r \~/input:=$INPUT_TOPIC \
  -r \~/transformed:=$OUTPUT_TOPIC \
  -p source_frame_id:=$SOURCE_FRAME_ID \
  -p target_frame_id:=$TARGET_FRAME_ID

The provided launch file enables you to directly launch a tf2_ros/static_transform_publisher (opens in a new tab) alongside the message_tf_frame_transformer node. This way you can transform a topic to a new coordinate frame with a single command.

ros2 launch message_tf_frame_transformer message_tf_frame_transformer.launch.xml \
  input_topic:=$INPUT_TOPIC \
  output_topic:=$OUTPUT_TOPIC \
  source_frame_id:=$SOURCE_FRAME_ID \
  target_frame_id:=$TARGET_FRAME_ID \
  x:=$X \
  y:=$Y \
  z:=$Z \
  roll:=$ROLL \
  pitch:=$PITCH \
  yaw:=$YAW
Supported Message Types

The message_tf_frame_transformer package is able to support any ROS message type that integrates with tf2::doTransform (opens in a new tab). Currently, the following message types are explicitly supported.

Adding Support for a New Message Type

Through application of preprocessor macros, adding support for a new ROS message type is as easy as adding only two lines of code. Note that the ROS message types have to integrate with tf2::doTransform (opens in a new tab). Feel free to open a pull request to add support for more message types!

  1. message_types.hpp (opens in a new tab)
    • include required message headers
  2. message_types.macro (opens in a new tab)
    • define information about the new message type by calling the MESSAGE_TYPE macro
      • TYPE: ROS message type (e.g. geometry_msgs::msg::PointStamped)
      • NAME: ROS message type name (e.g. geometry_msgs/msg/PointStamped)
Nodes
PackageNodeDescription
message_tf_frame_transformermessage_tf_frame_transformertransform arbitrary ROS messages to a different coordinate frame
message_tf_frame_transformer/message_tf_frame_transformer
Subscribed Topics
TopicTypeDescription
~/inputsee Supported Message Typesmessage to transform
Published Topics
TopicTypeDescription
~/transformedsee Supported Message Typestransformed message
Services

-

Actions

-

Parameters
ParameterTypeDescription
~/target_frame_idstringtarget frame ID
~/source_frame_idstringsource frame ID (optional; if message has no std_msgs/Header (opens in a new tab))
~/transform_lookup_grace_periodintGrace period in milliseconds to wait for a frame transform to become available (optional)
Acknowledgements

This research is accomplished within the project 6GEM (opens in a new tab) (FKZ 16KISK036K). We acknowledge the financial support for the project by the Federal Ministry of Education and Research of Germany (BMBF).

Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.