Skip to content

Commit

Permalink
Clarify initial_value scope w.r.t mock_components and gazebo
Browse files Browse the repository at this point in the history
  • Loading branch information
fmauch committed Feb 1, 2024
1 parent 3471736 commit 0d321b8
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ They can be combined together within the different hardware component types (sys
<gpio name="flange_analog_IOs">
<command_interface name="analog_output1"/>
<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 -->
<param name="initial_value">3.1</param> <!-- Optional initial value for mock_hardware -->
</state_interface>
<state_interface name="analog_input1"/>
<state_interface name="analog_input2"/>
Expand Down
4 changes: 3 additions & 1 deletion hardware_interface/doc/mock_components_userdoc.rst
Original file line number Diff line number Diff line change
Expand Up @@ -66,4 +66,6 @@ initial_value (optional; double)
<param name="initial_value">3.45</param>
</state_interface>
Note: This parameter is shared with the gazebo and gazebo classic plugins.
Note: This parameter is shared with the gazebo and gazebo classic plugins for
joint interfaces. For Mock components it is also possible to set initial
values for gpio or sensor state interfaces.

0 comments on commit 0d321b8

Please sign in to comment.