Skip to content
YuJun Robotics

A gamepad can push several axes at once; a keyboard cannot, and this ROS 2 package fills the gap

Published on December 1, 2026Technical Sharing

A gamepad can push several axes at once; a keyboard cannot, and this ROS 2 package fills the gap

The Centre of Excellence in Artificial Intelligence at AGH University in Krakow has open-sourced a small package with a literal name: teleop2servo. It converts gamepad or keyboard input into TwistStamped or JointJog messages and sends them to MoveIt 2 Servo to drive an arm (ROS Discourse, 2026-11-30).

The story starts with a MoveIt 2 tutorial. In the Humble release there is a piece called Realtime Arm Servoing on using Servo for real-time joint servoing. It used to link to an existing implementation under an "entire code" link, which later broke. The new tutorial switched to keyboard control instead of a gamepad.

A keyboard works, with one physical limit: standard input registers one key at a time. Moving an arm along two directions at once, or translating while rotating the wrist, is not possible. Two thumbsticks can.

That is the gap this package fills.

It treats two control modes separately. TwistStamped works in Cartesian space; the stick commands end-effector velocity, good for driving a tool in a straight line or about an axis. JointJog works in joint space, good for nudging one joint through a posture or away from a singularity. MoveIt 2 Servo accepts both topics, and the caller picks per task (ROS Discourse, 2026-11-30).

The code is largely the work of Antoni Radomiński-Lasek, who first met the ROS 2 and MoveIt 2 ecosystem on this project. The centre's lead notes in the thread that he is proud of the result.

The project is Apache 2.0, at AGH-CEAI/teleop2servo. The same lab has also released a ROS 2 Humble driver for the Robotiq Hand-E gripper and a driver for WLED strips from ROS 2.

Tools like this never get cited in papers and get used daily in labs. When a new student has to demo an arm, the first task is not tuning an algorithm but finding a safe way to drag it by hand. Without that entry point, debugging means editing code, running a planner and watching RViz, minutes per round.

With a gamepad on Servo, a person can push the arm to the wanted pose and record joint values. Data collection, trajectory teaching and kinematics validation all start here (ROS Discourse, 2026-11-30).

It has limits. Servo's real-time behaviour depends on the controller loop rate, and stick sampling plus dead zones shape the feel. Stick drift and key bounce, small faults of consumer hardware, get amplified in force-controlled work.

The author welcomes feedback, issues and PRs. For a young project that is more useful than documentation.

The MoveIt 2 tutorial dropped the gamepad, probably to lower the barrier so more people could run it without buying hardware. The cost was losing the example of simultaneous multi-axis control. This package restores it, and reminds tutorial maintainers that code links rot and small tools in the ROS 2 ecosystem often get filled in by individuals (ROS Discourse, 2026-11-30).

Back to list