< >
Home » ROS2与Turtlebot入门 » Turtlebot-ROS2入门教程-键盘控制

Turtlebot-ROS2入门教程-键盘控制

Turtlebot-ROS2入门教程-键盘控制

说明:

  • 介绍如何通过键盘控制TurtlebotROS2

步骤:

  • 执行命令:
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

参考:

  • https://github.com/ros2/teleop_twist_keyboard

纠错,疑问,交流: 请进入讨论区点击加入Q群

获取最新文章: 扫一扫右上角的二维码加入“创客智造”公众号


标签: turtlebot-ros2入门教程