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

Possible bug with teleop_twist_joy and Logitech F710 game controller #37

Closed
altineller opened this issue Jun 26, 2023 · 4 comments
Closed
Labels
help wanted Extra attention is needed

Comments

@altineller
Copy link

I am on ROS humble, and using teleop_twist_joy with Logitech f710 controller for a while. After a recent update with humble, the joystick started acting erroneously.
Upon closer inspection, I have found that the joystick reports x and y axes as 0.99 initially. So when you push the security button, it will send the cmdvel command derived from x=0.99, y=0.99 resulting in robot to move in full speed in a circular pattern, without touching the joystick. So the solution is move the joysticks before touching the security button and it will work normally as before.
But once the joystick is plugged in it reads 0.99 for all axes, and not 0.0 as it was before. I understand this could be on various levels, maybe some change in linux kernel, or the module that reads /dev/input/js0 - or the teleop_twist_joy package itself.

It is not a problem for me but if some other people are using the same setup, after software update, the teleop_twist_joy package will work erroneously, and it might cause a crash of the robot or accident, by accelerating with 0 throttle input, but security button pushed.

Best Regards, Can

@clalancette
Copy link

There has been a recent update to teleop_twist_joy (2.4.5), but I highly doubt it would have caused your problem. That was just a change to how the library was linked.

I do kind of remember seeing this kind of thing before. I'd make sure to reboot the computer, and/or reboot the joystick itself (take out the batteries), and also unplug and replug the USB dongle. This may help the situation.

@padhupradheep
Copy link

padhupradheep commented Jul 3, 2023

We found this problem 5 months ago. I have explained about it in detail in the link. I've also added how to work around.

As mentioned over there. I think the problem has taken it's root in Logitech f710 driver and probably needs to be somehow handled in the Joy node. We'd be happy to provide a fix for this issue soon.

P.S.: We do not use teleop_twist_joy package but rather our own home brewed package that takes the inputs from the joy command.

There has been a recent update to teleop_twist_joy (2.4.5), but I highly doubt it would have caused your problem. That was just a change to how the library was linked.

Definitely not the cause. We can also see the issue in Ubuntu 20.04. That means, the issue can also be reproduced in ROS-Noetic.

@clalancette clalancette added the help wanted Extra attention is needed label Jul 13, 2023
@padhupradheep
Copy link

Could we please move this issue to https://github.com/ros-drivers/joystick_drivers ? Since the issue originates from there.

Thanks

@clalancette
Copy link

Could we please move this issue to https://github.com/ros-drivers/joystick_drivers ? Since the issue originates from there.

Unfortunately, GitHub does not allow me to transfer issues across organizations, so I can't do that. My suggestion is that you open up another issue over at that repository; once that is done, I'll close this one in favor of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

3 participants