Skip to content

FedericoRollo/keyboard_teleop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

19 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

keyboard_teleop

This ros package allow to drive a robot through a /cmd_vel topic using keyboard keys.

As default the command can be given only if the mouse focus is on the terminal where the program is launched; but if you want to send commands without any needs to be focused on the teleop terminal, i.e., you want to use the commands directly on simulation or anywhere else, you can set the terminal_focus parameter to false. ATTENTION! this operation is risky, especially if you are using a real robot!!

Dependencies

To use this package install the following dependences

sudo apt install xdotool

Usage

change the config/keyboard_teleop.yaml file to set the following parameters based on your robot specs:

  • twist velocity command topic (cmd_vel_topic_name)
  • father frame id (cmd_vel_father_frame_id)
  • max linear velocity (max_lin_vel)
  • max angular velocity (max_ang_vel)
  • send commands only if the mouse focus is on the teleop terminal (terminal_focus)
roslaunch keyboard_teleop keyboard_teleop.launch config_name:=YOUR_CONFIG_NAME_WITHOUT_YAML_FILE_EXTENSION

omni-directional robot control

drawing

differential drive robot control

drawing

About

This ros package allow to drive a robot through a /cmd_vel topic using keyboard keys directly on simulation or with a real robot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors