
Software
teleop_twist_keyboard
By ROS 2, from github.com/ros2/teleop_twist_keyboard (opens in a new tab)
- Middleware
- Tool
- BSD-3-Clause
A ROS 2 node that turns keyboard presses into velocity commands, letting you drive a robot by hand from a terminal.
Facts
- GitHub stars
- 52read on 29 Nov 2026
- Last update
- 28 Sept 2026Newest commit on rolling
- Maintenance
- Activea commit in the last 90 days
- Difficulty
- Beginner
Checked on GitHub on 29 Nov 2026.
Licenses
- Code
- BSD-3-Clause (opens in a new tab)
Read by Robotheca from LICENSE (opens in a new tab) (BSD-3-Clause) at commit 2024cfe (opens in a new tab), on 16 Oct 2026.
- Commercial use
- Yes
At a glance
- What it is
- Reads keypresses and publishes them as Twist messages, working best with a US keyboard layout.
- Letters u, i, o, j, k, l, m, comma and period move the robot in planar directions.
- Holding shift switches to holonomic mode, so the robot strafes sideways.
- Keys t and b move up and down along z; any other key stops the robot.
- Keys q/z, w/x and e/c raise or lower overall, linear-only and angular-only speeds by 10%.
- Can publish TwistStamped messages with a chosen frame_id, and remap the output topic such as to my_cmd_vel.
Robotheca's summary of the project's documents, not the creator's words.
- Robots on Robotheca
- Used by T-Robot.
- Licence
- BSD-3-Clause. Commercial use: Yes. Where it was read
- Install
- In the creator's words: The project's README (opens in a new tab)
- Maintenance
- Active, last commit on 28 Sept 2026.
Works with
The robots on Robotheca that use it or can run it, each with how the link was found.

Found by Robotheca in ros2_packages/robot_bringup/package.xml (opens in a new tab)
Use it
How to install it, in the creator's words: The project's README (opens in a new tab)
Robotheca doesn't review code. Read it before running it.
Files and versions
- Repository on GitHubgithub.com/ros2/teleop_twist_keyboard (opens in a new tab)
- The version Robotheca read2024cfe (opens in a new tab)
- Latest releaseNone published on GitHub
Robotheca never hosts the code: each link goes to the creator's own page.
The README
The creator's own README, copied as written: README.md by ROS 2, at commit 2024cfe, under BSD-3-Clause (opens in a new tab). The original on GitHub (opens in a new tab).
Read the README here
teleop_twist_keyboard
Generic Keyboard Teleoperation for ROS
Run
ros2 run teleop_twist_keyboard teleop_twist_keyboard
Publishing to a different topic (in this case my_cmd_vel).
ros2 run teleop_twist_keyboard teleop_twist_keyboard --ros-args --remap cmd_vel:=my_cmd_vel
Usage
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
Parameters
stamped (bool, default: false)- If false (the default), publish a
geometry_msgs/msg/Twistmessage. If true, publish ageometry_msgs/msg/TwistStampedmessage.
- If false (the default), publish a
frame_id (string, default: '')- When
stampedis true, the frame_id to use when publishing thegeometry_msgs/msg/TwistStampedmessage.
- When
speed (double, default: 0.5)- The speed the node starts with by default.
turn (double, default: 1.0)- The turn rate (rad/s) the node starts with by default.
Robotheca lists software as a reference: nothing is hosted or run here, and every fact links to where it was read.