Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Xbox controls for drivetrain #245

Open
nico-palmar opened this issue May 14, 2023 · 2 comments
Open

Xbox controls for drivetrain #245

nico-palmar opened this issue May 14, 2023 · 2 comments
Assignees

Comments

@nico-palmar
Copy link
Contributor

nico-palmar commented May 14, 2023

The current working branch for the drivetrain and ros2 control does not have xbox control integration.

We should try to see if we can leverage an existing package for using an xbox to control the rover works.
Refer to this repo https://github.com/ros2/teleop_twist_joy (as the source) and follow the instructions to setup teleop_twist_joy.

Note that this package comes from the ros1 version, so you can refer to the ros1 wiki for more high level details: http://wiki.ros.org/teleop_twist_joy

We should test this node and see if it is easy to control the rover using it.

If it is not easy and we need to make a new xbox control scheme that is easier to use:

A new xbox node similar to the one used here for SAR should be used: https://github.com/uwrobotics/uwrt_mars_rover/tree/user/nico/CANVel

We need to create a new xbox controller node that is more generic and not only picks up the joystick x and y values, but also left trigger, right trigger, and a few other buttons in an easy format.

Then, we should test using a few different controller schemes for controlling the xbox (maybe in simulation) and do some user/usability testing to figure out which control scheme works best to drive the rover (ie, it is the easiest).

@andrew2002zhao
Copy link

andrew2002zhao commented Jul 13, 2023

@soumya-khanna
Copy link

soumya-khanna commented Nov 5, 2023

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: In Progress
Development

No branches or pull requests

3 participants