Skip to content

hrc-pme/stretch_wsad_teleop

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

stretch_wsad_teleop

Standalone WSAD keyboard teleoperation node for Hello Robot Stretch on ROS 2.

  • w/s: forward/backward
  • a/d: turn left/right
  • space or x: stop
  • q: quit

Dependencies

  • ROS 2 Humble
  • rclpy, geometry_msgs, std_srvs

Build (inside container)

colcon build --packages-select stretch_wsad_teleop
source /ws/install/setup.bash

Run

The driver launch file is from the official repository (stretch_core), and the following command works:

ros2 launch stretch_core stretch_driver.launch.py mode:=navigation broadcast_odom_tf:=True
ros2 run stretch_wsad_teleop wsad_teleop

Launch file

ros2 launch stretch_wsad_teleop wsad_teleop.launch.py

You can override parameters:

ros2 launch stretch_wsad_teleop wsad_teleop.launch.py \
  topic:=/stretch/cmd_vel linear:=0.2 angular:=1.0 repeat_stop_timeout:=0.2 auto_switch_mode:=true

Notes

  • The node attempts to call /switch_to_navigation_mode (Trigger) on startup if auto_switch_mode is true.
  • It publishes to /stretch/cmd_vel by default.

Official Repository

License

Apache-2.0

About

Standalone ROS 2 WSAD keyboard teleop for the Hello Robot Stretch, bundled with the official stretch_ros2 workspace and Docker Compose environment for easy bring-up.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages