Skip to content

Software

robot_state_publisher

By ROS core stacks, from github.com/ros/robot_state_publisher (opens in a new tab)

  • Middleware
  • Tool
  • BSD-3-Clause

A ROS node and class that publishes a robot's joint states as 3D transforms to tf2, using a URDF kinematic model of the robot.

Facts

GitHub stars
127read on 29 Nov 2026
Last update
3 Nov 2026Newest commit on rolling
Maintenance
Activea commit in the last 90 days
Difficulty
Beginner

Checked on GitHub on 29 Nov 2026.

Licenses

Code
BSD-3-Clause (opens in a new tab)

Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit cb1f736 (opens in a new tab), on 6 Nov 2026.

Commercial use
Yes

At a glance

What it is
  • Loads a robot's kinematic tree from a URDF supplied at startup.
  • Subscribes to joint_states and turns the joint values into transforms on the tf topic.
  • Publishes fixed joints once on the transient-local tf_static topic.
  • Can receive the robot description from a robot_description topic instead of a parameter.
  • Republishes the robot description as a transient-local topic when the parameter mode is used.
  • Parameters control publish frequency, timestamp handling and an optional frame prefix.

Robotheca's summary of the project's documents, not the creator's words.

Licence
BSD-3-Clause. 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 3 Nov 2026.

Works with

30 robots on Robotheca

The robots on Robotheca that use it or can run it, each with how the link was found.

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 cb1f736

Robotheca read the repository at two versions: the summary at 9bcf8fc and the facts and the README at cb1f736 (read on 29 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 ROS core stacks, at commit cb1f736, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).

Read the README here

Robot State Publisher

This package contains the Robot State Publisher, a node and a class to publish the state of a robot to tf2. At startup time, Robot State Publisher is supplied with a kinematic tree model (URDF) of the robot. It then subscribes to the joint_states topic (of type sensor_msgs/msg/JointState) to get individual joint states. These joint states are used to update the kinematic tree model, and the resulting 3D poses are then published to tf2.

Robot State Publisher deals with two different "classes" of joint types: fixed and movable. Fixed joints (with the type "fixed") are published to the transient_local /tf_static topic once on startup (transient_local topics keep a history of what they published, so a later subscription can always get the latest state of the world). Movable joints are published to the regular /tf topic any time the appropriate joint is updated in the joint_states message.

By default, the robot description must be provided via the robot_description parameter. However, you can optionally configure the node to subscribe to the robot_description topic instead. This allows another node to publish the robot description at runtime. In this mode, Robot State Publisher becomes a passive consumer of the description and no longer republishes it.

Examples showing how to pass the robot_description parameter using a launch file are available in the 'launch' subdirectory.

Published Topics
  • robot_description (std_msgs/msg/String) - (Only if use_robot_description_topic is false (default)) The description of the robot URDF as a string. Republishes the value set in the robot_description parameter, which is useful for informing other tools of the current robot model. Published using the "transient local" quality of service, so subscribers should also use "transient local".
  • tf (tf2_msgs/msg/TFMessage) - The transforms corresponding to the movable joints of the robot.
  • tf_static (tf2_msgs/msg/TFMessage) - The transforms corresponding to the static joints of the robot.
Subscribed Topics
  • joint_states (sensor_msgs/msg/JointState) - The joint state updates to the robot poses. The RobotStatePublisher class takes these updates, does transformations (such as mimic joints), and then publishes the results on the tf2 topics.
  • robot_description (std_msgs/msg/String) - (Only if use_robot_description_topic is true (not default)). The incoming robot description from another node. The node will not use the robot_description parameter if this mode is enabled.
Parameters
  • use_robot_description_topic (bool) - Whether to receive the robot description from the robot_description topic instead of from a parameter. Defaults to false.
  • robot_description (string) - The original description of the robot in URDF form. This must be set at robot_state_publisher startup time unless use_robot_description_topic is true. Updates to this parameter will be reflected in the robot_description topic.
  • publish_frequency (double) - The maximum frequency at which non-static transforms (e.g. joint states) will be published to /tf. Defaults to 20.0 Hz.
  • ignore_timestamp (bool) - Whether to accept all joint states no matter what the timestamp (true), or to only publish joint state updates if they are newer than the last publish_frequency (false). Defaults to false.
  • frame_prefix (string) - An arbitrary prefix to add to the published tf2 frames. Defaults to the empty string.

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