Skip to content

This is a basic keyboard teleoperation/control module built for ROS Noetic. Interfaces with Twist in ROS, and publishes to /cmd_vel for simple robot control.

Notifications You must be signed in to change notification settings

jbennet-t/keyboard_control

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

keyboard_control


This was developed for ROS1. For integration with ROS2, use this updated version: https://github.com/jbennet-t/keyboard_control2


This is a basic keyboard teleoperation/control module built for ROS Noetic. Interfaces with Twist in ROS, and publishes to /cmd_vel for simple robot control.

How to Install

  1. cd to the src folder in your catkin workspace, and clone this repository there (assuming you have ros and git installed)
  2. git clone https://github.com/jbennet-t/keyboard_control.git
  3. Install the python getch module: pip3 install getch

How to Run

  1. In the first terminal tab, run roscore
  2. In a new tab, source devel/setup.bash
  3. cd to /opt/ros/noetic/share/stage_ros or wherever stage_ros is installed for your ROS version
  4. Run rosrun stage_ros stageros $(rospack find stage_ros)/world/willow-erratic.world
  5. A window with the sim running should appear
  6. In a new tab, source devel/setup.bash
  7. roscd to wherever you cloned the repository (.../src/keyboard_control)
  8. Run the program: rosrun keyboard_control keyboard_input.py

Note: you may have to install pip3 and if it is not already part of your python install

About

This is a basic keyboard teleoperation/control module built for ROS Noetic. Interfaces with Twist in ROS, and publishes to /cmd_vel for simple robot control.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published