ros-teleop / teleop_twist_keyboard

Generic Keyboard Teleop for ROS
253 stars 399 forks source link

Shift+"_" (movement to right-backwards) publishes zero velocity #33

Closed JanezCim closed 1 year ago

JanezCim commented 1 year ago

installed through apt and ran with

sudo apt install ros-noetic-teleop-twist-keyboard
apt-show-versions ros-noetic-teleop-twist-keyboard
ros-noetic-teleop-twist-keyboard:amd64/focal 1.0.0-1focal.20220926.190755 uptodate
rosrun teleop_twist_keyboard teleop_twist_keyboard.py

im seeing speeds published to /cmdvel for all directions except when i click shift+ which i believe is supposed to send commands

linear: 
  x: -0.5
  y: -0.5
  z: 0.0

but sends all zeroes instead. Am I the only one seeing this?

trainman419 commented 1 year ago

The character for "strafe right-backwards" is > , which on an American keyboard is Shift+. .

I'm guessing you have a different keyboard layout :/

As q quick fix, you can copy this package into your workspace and modify the keyboard map to fit your keyboard: https://github.com/ros-teleop/teleop_twist_keyboard/blob/master/teleop_twist_keyboard.py#L51-L70

If this is a long-term problem for you, perhaps we should work together to add configurable keymap support to teleop_twist_keyboard?

JanezCim commented 1 year ago

you are right, it was the fault of the layout. I have ">" on a different key on my keyboard that is on a completely other location. For me this is a solve, I dont need teleop support for different layouts. Thank you for your quick answer!