Improved ROS robot_state_publisher
which can update the robot model via dynamic_reconfigure.
Use this node as a replacement for robot_state_publisher/robot_state_publisher
.
It behaves the same way, except it also spawns a dynamic reconfigure server in the node's namespace. This server can receive updates of the robot model, to which it reacts by reloading the robot model.
This package was created as one of the workarounds to issue Reload robot model (e.g. during calibration).
If you read that issue, you learn that this problem is quite complex and this package is a solution just to a subclass of the problems.
E.g. 3rd party packages do not expect the robot_description
parameter to change, and so you have to somehow tell them to do so (e.g. by restarting their nodes).
One of the things that this package does and is probably aginst good practices is
it tries to delete static transforms that disappeared after model reload. This
deletion is implemented by reconnecting the frames to virtual frame
DynamicRobotStatePublisher::DELETED_STATIC_TFS_FRAME
. This effectively breaks the
assumption that a static TF is valid all the time. These static TFs are not. You
have to count with that in the rest of your codebase.
- ros/robot_state_publisher#31 (Adds a
TriggerService
) which you can call to reload the model from param server. - mutable_robot_state_publisher: A more complex thing that allows you to send URDF fragments to the state publisher.