Skip to content

Commit ecfdfc7

Browse files
Remove visibility include from docs (#1975)
1 parent 53656e4 commit ecfdfc7

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

hardware_interface/doc/writing_new_hardware_component.rst

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ The following is a step-by-step guide to create source files, basic tests, and c
2222
After creating the package, you should have at least ``CMakeLists.txt`` and ``package.xml`` files in it.
2323
Create also ``include/<PACKAGE_NAME>/`` and ``src`` folders if they do not already exist.
2424
In ``include/<PACKAGE_NAME>/`` folder add ``<robot_hardware_interface_name>.hpp`` and ``<robot_hardware_interface_name>.cpp`` in the ``src`` folder.
25-
Optionally add ``visibility_control.h`` with the definition of export rules for Windows.
26-
You can copy this file from an existing controller package and change the name prefix to the ``<PACKAGE_NAME>``.
2725

2826
#. **Adding declarations into header file (.hpp)**
2927

3028
1. Take care that you use header guards. ROS2-style is using ``#ifndef`` and ``#define`` preprocessor directives. (For more information on this, a search engine is your friend :) ).
3129

32-
2. Include ``"hardware_interface/$interface_type$_interface.hpp"`` and ``visibility_control.h`` if you are using one.
30+
2. Include ``"hardware_interface/$interface_type$_interface.hpp"``.
3331
``$interface_type$`` can be ``Actuator``, ``Sensor`` or ``System`` depending on the type of hardware you are using. for more details about each type check :ref:`Hardware Components description <overview_hardware_components>`.
3432

3533
3. Define a unique namespace for your hardware_interface. This is usually the package name written in ``snake_case``.

0 commit comments

Comments
 (0)