From 0d38c3a0616ae87d12bd97efa8a76e408cca7509 Mon Sep 17 00:00:00 2001 From: "mergify[bot]" <37929162+mergify[bot]@users.noreply.github.com> Date: Mon, 29 Apr 2024 16:22:48 +0200 Subject: [PATCH] [Doc] Add documentation about initial_value regarding mock_hw (#1352) (#1513) (cherry picked from commit 26815e82f85468a1cfa4e206a58a86be1b3f692b) Co-authored-by: Felix Exner (fexner) --- .../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.