Close

Installing the ROS 2 teleop package

A project log for Indoor Autonomous Mobile Platform

Building a prototype Autonomous Mobile Robot (AMR) to apply ROS 2 and SLAM concepts in a real-world environment.

peter-wallheadPeter Wallhead 07/27/2025 at 01:390 Comments

I had to build this package from source because it was no longer available on the ROS 2 package server for Humble.

cd ~/ros2_ws/src
git clone https://github.com/ros2/teleop_twist_keyboard.git
cd ~/ros2_ws
rosdep install --from-paths src --ignore-src -r -y
colcon build --packages-select teleop_twist_keyboard
source install/setup.bash
ros2 run teleop_twist_keyboard teleop_twist_keyboard

I then modified the node script (~/ros2_ws/src/teleop_twist_keyboard/teleop_twist_keyboard.py) to set the default speeds on lines 156 (speed) and 157 (turn) instead of adjusting them using the keyboard on every run, before rebuilding.

Discussions