目录:
说明:
步骤:
ros2 launch turtlebot4_ignition_bringup ignition.launch.py
- 效果图:

HMI界面控制




键盘控制
ros2 run teleop_twist_keyboard teleop_twist_keyboard
- $ ros2 run teleop_twist_keyboard teleop_twist_keyboard
-
- This node takes keypresses from the keyboard and publishes them
- as Twist messages. It works best with a US keyboard layout.
- ---------------------------
- Moving around:
- u i o
- j k l
- m , .
-
- For Holonomic mode (strafing), hold down the shift key:
- ---------------------------
- U I O
- J K L
- M < >
-
- t : up (+z)
- b : down (-z)
-
- anything else : stop
-
- q/z : increase/decrease max speeds by 10%
- w/x : increase/decrease only linear speed by 10%
- e/c : increase/decrease only angular speed by 10%
-
- CTRL-C to quit
-
- currently: speed 0.5turn 1.0
命令控制
ros2 topic pub /cmd_vel geometry_msgs/msg/Twist "{linear: {x: 1.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 0.0}}"
ros2 topic pub /cmd_vel geometry_msgs/msg/Twist "{linear: {x: 1.0, y: 0.0, z: 0.0}, angular: {x: 0.0, y: 0.0, z: 1.0}}"
ros2 action send_goal /drive_distance irobot_create_msgs/action/DriveDistance "{distance: 0.5, max_translation_speed: 0.3}"
ros2 action send_goal /drive_arc irobot_create_msgs/action/DriveArc "{angle: 1.57,radius: 0.3,translate_direction: 1,max_translation_speed: 0.3}"
ros2 action send_goal /rotate_angle irobot_create_msgs/action/RotateAngle "{angle: 1.0, max_rotation_speed: 0.3}"