Skip to content

Commit

Permalink
Add documentation about initial_value regarding mock_hw
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Jan 31, 2024
1 parent 48e1a8b commit 3471736
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion hardware_interface/doc/hardware_interface_types_userdoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,9 @@ They can be combined together within the different hardware component types (sys
</gpio>
<gpio name="flange_analog_IOs">
<command_interface name="analog_output1"/>
<state_interface name="analog_output1"/> <!-- Needed to know current state of the output -->
<state_interface name="analog_output1"> <!-- Needed to know current state of the output -->
<param name="initial_value">3.1</param> <!-- Optional initial value for mock_hardware or gazebo -->
</state_interface>
<state_interface name="analog_input1"/>
<state_interface name="analog_input2"/>
</gpio>
Expand Down
14 changes: 14 additions & 0 deletions hardware_interface/doc/mock_components_userdoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,17 @@ mimic (optional; string)

multiplier (optional; double; default: 1; used if mimic joint is defined)
Multiplier of values for mimicking joint defined in ``mimic`` parameter. Example: ``<param name="multiplier">-2</param>``.

Per-interface Parameters
,,,,,,,,,,,,,,,,,,,,,,,,

initial_value (optional; double)
Initial value of certain state interface directly after startup. Example:

.. code-block:: xml
<state_interface name="position">
<param name="initial_value">3.45</param>
</state_interface>
Note: This parameter is shared with the gazebo and gazebo classic plugins.

0 comments on commit 3471736

Please sign in to comment.