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
*DiffBot*, or ''Differential Mobile Robot'', is a simple mobile base with differential drive.
4
-
The robot is basically a box moving according to differential drive kinematics.
3
+
*DiffBot*, or ''Differential Mobile Robot'', is a simple mobile base with differential drive. This example shows how to create chained controllers using diff_drive_controller and pid_controllers to control a differential drive robot.
5
4
6
5
Find the documentation in [doc/userdoc.rst](doc/userdoc.rst) or on [control.ros.org](https://control.ros.org/master/doc/ros2_control_demos/example_16/doc/userdoc.html).
Like before, if you can see an orange box in *RViz*, everything has started properly.
188
+
Like before, if you can see an orange box in *RViz*, everything has started properly.
189
189
190
190
2. To start the plotjuggler with a provided layout file(plotjuggler.xml), open another terminal and run following command.
191
191
192
-
.. code-block:: shell
192
+
.. code-block:: shell
193
193
194
194
ros2 run plotjuggler plotjuggler --layout $(ros2 pkg prefix ros2_control_demo_example_16 --share)/config/plotjuggler.xml
195
195
196
-
After this, you will see a few dialogs popping up. For example:
196
+
After this, you will see a few dialogs popping up. For example:
197
197
198
-
.. code-block:: shell
198
+
.. code-block:: shell
199
199
200
200
Start the previously used streaming plugin?
201
201
202
202
ROS2 Topic Subscriber
203
203
204
-
Click 'Yes' for the first dialog and 'OK" to the following two dialogs, then you will see the plotjuggler window.
204
+
Click 'Yes' for the first dialog and 'OK" to the following two dialogs, then you will see the plotjuggler window.
205
205
206
206
3. To enable feedforward mode and published a command to move the robot, instead of doing these manually, we will use the demo_test.launch.py. Open another terminal and execute
@@ -217,7 +217,7 @@ Click 'Yes' for the first dialog and 'OK" to the following two dialogs, then you
217
217
218
218
5. Change the ``gains`` in the ``diffbot_chained_controllers.yaml`` file with some different values, repeat above steps and observe its effect to the pid_controller commands. For example, to change the ``feedforward_gain`` of the right wheel to 0.50, you can use the following command:
219
219
220
-
.. code-block:: shell
220
+
.. code-block:: shell
221
221
222
222
ros2 param set /pid_controller_right_wheel_joint gains.right_wheel_joint.feedforward_gain 0.50
0 commit comments