From a215d233177ad684bb31309632700ec44ed92ef2 Mon Sep 17 00:00:00 2001 From: Christoph Froehlich Date: Mon, 22 Apr 2024 12:50:24 +0000 Subject: [PATCH] Add missing calculate_dynamics --- .../doc/mock_components_userdoc.rst | 67 ++++++++++++++++--- 1 file changed, 57 insertions(+), 10 deletions(-) diff --git a/hardware_interface/doc/mock_components_userdoc.rst b/hardware_interface/doc/mock_components_userdoc.rst index 782d3e01ea..8eca65c52b 100644 --- a/hardware_interface/doc/mock_components_userdoc.rst +++ b/hardware_interface/doc/mock_components_userdoc.rst @@ -28,27 +28,74 @@ Features: Parameters ,,,,,,,,,, +A full example including all optional parameters (with default values): + +.. code-block:: xml + + + + mock_components/GenericSystem + false + + false + false + false + 0.0 + + + + + + 3.45 + + + + + + + + + 2.78 + + + + + + + + + + + +See :ref:`example_2 ` for an example using ``calculate_dynamics`` or :ref:`example_10 ` for using in combination with GPIO interfaces. + +Component Parameters +#################### + +calculate_dynamics (optional; boolean; default: false) + Calculation of states from commands by using Euler-forward integration or finite differences. + +custom_interface_with_following_offset (optional; string; default: "") + Mapping of offsetted commands to a custom interface. + disable_commands (optional; boolean; default: false) Disables mirroring commands to states. This option is helpful to simulate an erroneous connection to the hardware when nothing breaks, but suddenly there is no feedback from a hardware interface. Or it can help you to test your setup when the hardware is running without feedback, i.e., in open loop configuration. -mock_sensor_commands (optional; boolean; default: false) - Creates fake command interfaces for faking sensor measurements with an external command. - Those interfaces are usually used by a :ref:`forward controller ` to provide access from ROS-world. - mock_gpio_commands (optional; boolean; default: false) Creates fake command interfaces for faking GPIO states with an external command. Those interfaces are usually used by a :ref:`forward controller ` to provide access from ROS-world. -position_state_following_offset (optional; double; default: 0.0) - Following offset added to the commanded values when mirrored to states. +mock_sensor_commands (optional; boolean; default: false) + Creates fake command interfaces for faking sensor measurements with an external command. + Those interfaces are usually used by a :ref:`forward controller ` to provide access from ROS-world. -custom_interface_with_following_offset (optional; string; default: "") - Mapping of offsetted commands to a custom interface. +position_state_following_offset (optional; double; default: 0.0) + Following offset added to the commanded values when mirrored to states. Only applied, if ``custom_interface_with_following_offset`` is false. -Per-interface Parameters -,,,,,,,,,,,,,,,,,,,,,,,, +Per-Interface Parameters +######################## initial_value (optional; double) Initial value of certain state interface directly after startup. Example: