Skip to content

Commit cd62c79

Browse files
committed
Add release notes
1 parent e6b8d9e commit cd62c79

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

doc/release_notes.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,20 @@ For details see the controller_manager section.
2222
* A method to get node options to setup the controller node #api-breaking (`#1169 <https://github.com/ros-controls/ros2_control/pull/1169>`_)
2323
* Export state interfaces from the chainable controller #api-breaking (`#1021 <https://github.com/ros-controls/ros2_control/pull/1021>`_)
2424
* All chainable controllers must implement the method ``export_state_interfaces`` to export the state interfaces, similar to ``export_reference_interfaces`` method that is exporting the reference interfaces.
25+
* Controllers can now be able to remap the interfaces they are going to claim from the controller_manager. For instance, this can be used when a controller is going to claim the ``effort`` interface but the hardware exposes a different interface such as ``torque`` or ``force`` or ``current`` etc. This can be easily defined in the controller configuration file as shown below (`#1667 <https:://github.com/ros-controls/ros2_control/pull/1667>`_)
26+
27+
.. code-block:: yaml
28+
29+
<controller_name>:
30+
ros__parameters:
31+
type: <controller_type>
32+
remap:
33+
state_interfaces:
34+
"<joint>/effort": "<joint>/torque"
35+
command_interfaces:
36+
"<joint>/effort": "<joint>/torque"
37+
38+
In the above example, the controller is going to claim the ``effort`` interface but the hardware exposes the ``torque`` interface. By defining the above remapping definition, The controller will claim the ``torque`` interface instead of the ``effort`` interface.
2539

2640
controller_manager
2741
******************

0 commit comments

Comments
 (0)