ros-controls / ros-controls/ros2_controllers

Joint State Broadcaster print warning when unable to remap the interface properly

Open
#1,776 3 comments 0 reactions 1 assignee View on GitHub

@sviridovm is already working on this.

Since Dec 22, 2025.

good first issue
Dominant language
C++
Stars
834
Forks
530
Avg merge
18h 3m
Merged PRs (30d)
19

Description

Joint State Broadcaster

In the Joint_state_broadcaster, when we use the map_interface_to_joint_state parameter, when the interface is not found, when the remapped interface is not found, then it rolls back to the default one. When it chooses the default one, it would be nice to have a warning printed to notify the user that the remapping is not happening on certain joints.

Moreover, when there is not even the default interface (position, velocity, effort), then it should also print that it is not present and NaN's will be obtained in the respective field.

https://github.com/ros-controls/ros2_controllers/blob/a88bf0af29308448424d0112cba2b0560d1a7305/joint_state_broadcaster/src/joint_state_broadcaster_parameters.yaml#L29-L41

https://github.com/ros-controls/ros2_controllers/blob/a88bf0af29308448424d0112cba2b0560d1a7305/joint_state_broadcaster/src/joint_state_broadcaster.cpp#L241-L245

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.