You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/source/sas/sas_robot_driver_add_new_robot.rst
+85-29Lines changed: 85 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,11 +64,12 @@ Package-related sources
64
64
├── launch
65
65
│ └── real_robot_launch.py
66
66
├── package.xml
67
+
├── scripts
68
+
│ └── joint_interface_example.py
67
69
└── src
68
70
├── sas_robot_driver_myrobot.cpp
69
71
└── sas_robot_driver_myrobot_node.cpp
70
72
71
-
72
73
The files already exist, we just need to modify them as follows
73
74
74
75
.. tab-set::
@@ -103,7 +104,7 @@ Making your own ``sas`` robot drivers
103
104
#. :file:`src/sas_robot_driver_myrobot.cpp` with the driver's class implementation. Any internal libraries or drivers must be included here so that they are not externally visible.
104
105
#. :file:`src/sas_robot_driver_myrobot_node.cpp`.
105
106
106
-
Create all relevant files
107
+
Let's create all the files used in the remainder of this tutorial.
107
108
108
109
.. code-block:: console
109
110
@@ -124,19 +125,21 @@ The robot driver class
124
125
.. admonition:: In this step, we'll work on these.
125
126
126
127
.. code-block:: console
127
-
:emphasize-lines: 5,10
128
-
129
-
└── sas_robot_driver_myrobot
130
-
├── CMakeLists.txt
131
-
├── include
132
-
│ └── sas_robot_driver_myrobot
133
-
│ └── sas_robot_driver_myrobot.hpp
134
-
├── launch
135
-
│ └── real_robot_launch.py
136
-
├── package.xml
137
-
└── src
138
-
├── sas_robot_driver_myrobot.cpp
139
-
└── sas_robot_driver_myrobot_node.cpp
128
+
:emphasize-lines: 5,12
129
+
130
+
└── sas_robot_driver_myrobot
131
+
├── CMakeLists.txt
132
+
├── include
133
+
│ └── sas_robot_driver_myrobot
134
+
│ └── sas_robot_driver_myrobot.hpp
135
+
├── launch
136
+
│ └── real_robot_launch.py
137
+
├── package.xml
138
+
├── scripts
139
+
│ └── joint_interface_example.py
140
+
└── src
141
+
├── sas_robot_driver_myrobot.cpp
142
+
└── sas_robot_driver_myrobot_node.cpp
140
143
141
144
The example class file has two important design choices to note.
142
145
@@ -161,32 +164,63 @@ don't have to worry about source files specific to the robot and that your packa
0 commit comments