Skip to content

Commit a91619e

Browse files
Semantic components docs (ros-controls#2032)
1 parent 32d1508 commit a91619e

File tree

4 files changed

+23
-5
lines changed

4 files changed

+23
-5
lines changed

hardware_interface/doc/asynchronous_components.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
:github_url: https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/hardware_interface/doc/different_update_rates_userdoc.rst
1+
:github_url: https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/hardware_interface/doc/asynchronous_components.rst
22

33
.. _asynchronous_components:
44

hardware_interface/doc/hardware_components_userdoc.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ Guidelines and Best Practices
1818
Writing a Hardware Component <writing_new_hardware_component.rst>
1919
Different Update Rates <different_update_rates_userdoc.rst>
2020
Asynchronous Execution <asynchronous_components.rst>
21+
Semantic Components <semantic_components.rst>
2122

2223

2324
Handling of errors that happen during read() and write() calls

hardware_interface/doc/hardware_interface_types_userdoc.rst

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,7 @@ Sensors
5454
*****************************
5555
``<sensor>``-tag groups multiple state interfaces describing, e.g., internal states of hardware.
5656

57-
Depending on the type of sensor, there exist a couple of specific semantic components with broadcasters shipped with ros2_controllers, e.g.
58-
59-
- :ref:`Imu Sensor Broadcaster <imu_sensor_broadcaster_userdoc>`
60-
- :ref:`Force Torque Sensor Broadcaster <force_torque_sensor_broadcaster_userdoc>`
57+
Depending on the type of sensor, there exist a couple of specific semantic components with broadcasters shipped with ros2_controllers, see details in the :ref:`semantic_components <semantic_components>`.
6158

6259
GPIOs
6360
*****************************
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
:github_url: https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/hardware_interface/doc/semantic_components.rst
2+
3+
.. _semantic_components:
4+
5+
Semantic Components
6+
---------------------------------------------------------
7+
8+
In order to streamline the configuration of commonly used hardware interface, so-called semantic components can be used to wrap mechanisms to claim / release the interfaces. The base components ``semantic_components::SemanticComponentInterface`` and ``semantic_components::SemanticComponentCommandInterface`` are used to define semantic components for read-only and write-only devices, respectively.
9+
10+
List of existing ``SemanticComponentInterface`` `(link to header file) <https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/controller_interface/include/semantic_components/semantic_component_interface.hpp>`__ and associated broadcaster, if any:
11+
12+
* `IMUSensor <https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/controller_interface/include/semantic_components/imu_sensor.hpp>`__, used by :ref:`IMU Sensor Broadcaster <imu_sensor_broadcaster_userdoc>`
13+
* `ForceTorqueSensor <https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/controller_interface/include/semantic_components/force_torque_sensor.hpp>`__, used by :ref:`Force Torque Sensor Broadcaster <force_torque_sensor_broadcaster_userdoc>`
14+
* `GPSSensor <https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/controller_interface/include/semantic_components/gps_sensor.hpp>`__
15+
* `PoseSensor <https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/controller_interface/include/semantic_components/pose_sensor.hpp>`__, used by :ref:`Pose Broadcaster <pose_broadcaster_userdoc>`
16+
* `RangeSensor <https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/controller_interface/include/semantic_components/range_sensor.hpp>`__, used by :ref:`Range Sensor Broadcaster <range_sensor_broadcaster_userdoc>`
17+
18+
List of existing ``SemanticComponentCommandInterface`` `(link to header file) <https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/controller_interface/include/semantic_components/semantic_component_command_interface.hpp>`__ and associated controller, if any:
19+
20+
* `LedRgbDevice <https://github.com/ros-controls/ros2_control/blob/{REPOS_FILE_BRANCH}/controller_interface/include/semantic_components/led_rgb_device.hpp>`__

0 commit comments

Comments
 (0)