ros-controls/ros2_controllers

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

开放

#1,776 创建于 2025年6月25日

 (3 条评论) (0 个反应) (1 位负责人)C++ (520 个派生)auto 404
good first issue

仓库指标

星标
 (810 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

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

贡献者指南