From 2a54e7e34c8370ff26e026630efb35667bb25edb Mon Sep 17 00:00:00 2001 From: "Felix Exner (fexner)" Date: Thu, 1 Feb 2024 19:47:22 +0100 Subject: [PATCH] [Doc] Add documentation about initial_value regarding mock_hw (#1352) (cherry picked from commit 26815e82f85468a1cfa4e206a58a86be1b3f692b) --- .../doc/hardware_interface_types_userdoc.rst | 4 +++- .../doc/mock_components_userdoc.rst | 16 ++++++++++++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/hardware_interface/doc/hardware_interface_types_userdoc.rst b/hardware_interface/doc/hardware_interface_types_userdoc.rst index 54b2003568..cd1e475b20 100644 --- a/hardware_interface/doc/hardware_interface_types_userdoc.rst +++ b/hardware_interface/doc/hardware_interface_types_userdoc.rst @@ -85,7 +85,9 @@ They can be combined together within the different hardware component types (sys - + + 3.1 + diff --git a/hardware_interface/doc/mock_components_userdoc.rst b/hardware_interface/doc/mock_components_userdoc.rst index 326b3dfd2a..312d789712 100644 --- a/hardware_interface/doc/mock_components_userdoc.rst +++ b/hardware_interface/doc/mock_components_userdoc.rst @@ -58,3 +58,19 @@ 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: ``-2``. + +Per-interface Parameters +,,,,,,,,,,,,,,,,,,,,,,,, + +initial_value (optional; double) + Initial value of certain state interface directly after startup. Example: + + .. code-block:: xml + + + 3.45 + + + 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.