Skip to content
This repository has been archived by the owner on Dec 8, 2022. It is now read-only.

teleop: add a way to manage Virtual Joystick ranges #52

Open
Myzhar opened this issue May 17, 2016 · 0 comments
Open

teleop: add a way to manage Virtual Joystick ranges #52

Myzhar opened this issue May 17, 2016 · 0 comments

Comments

@Myzhar
Copy link

Myzhar commented May 17, 2016

It would be very useful if the ranges of the topic "cmd_vel" should be customizable.

As far as I know, the virtual joypad emits normalized values for X and Y axis in the range [-1,+1]
It's ok for robots that have maximum forward speed of 1.0 m/sec and maximum rotation speed of 1 rad/sec, but there exists robots faster and robots slower.

What I'm suggesting is to add 2 text fields (or 2 sliders) to adjust the muximum forward and rotation values... the value from the two field (or sliders) must simply be multiplied to the value extracted by the movement of the joypad.

Values are calculated here:
https://github.com/ros-android/android_app_manager/blob/master/src/ros/android/views/JoystickView.java#L136
https://github.com/ros-android/android_app_manager/blob/master/src/ros/android/views/JoystickView.java#L137

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants