-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
teleop_twist_joy does not work with SDL2 >= 2.32 (sdl2-compat), works with SDL2 <= 2.30 #37
Comments
Just to clarify in my report above, the formatting of my mamba list | grep "sdl" output was not correct (c/r in wrong place). On my MacOS system (which fails): whereas Linux (which works): |
Can you try to install sdl2 2.30.0 also on macOS to understand if that fixes the issue? |
I was not able to find an sdl2 version 2.30.0. My suspicion that there may be mixing of sdl2 and sdl3 is not correct. I have done a fresh mamba environment install. I run the teleop joy command and this fails as detailed in opening comment. I follow your suggestion (modified): I rerun teleop joy. The error message has gone. I am now successfully publishing Twist messages. So this solves the problem. Let me know if I need to close the issue. I have not done so as I assume there may be a change required to the conda package to solve this for other Mac users. Thank you for your help, |
My bad, I wanted to suggest 2.30.10 (i.e. the version used in Linux) there was a typo.\
Great, let's update the title for visibility.
sdl2 >= 2.32 actually installs a
As the default installation istructions are broken, the issue is still present, installing an older sdl2 is just a workaround. To help us to reproduce the problem, if you are able can you provide us more info:
Thanks a lot in advance for opening the issue. |
Would you like me to respond to your comments here, or in your link above? |
As you prefer. Probably as the discussion started here it make sense to continue here, that issue is just for visibility for people checking the sdl repo on conda-forge. |
I am using XEOX Gamepad SL-6556-BK I have executed on my Ubuntu 22.04.5 LTS So now my teleop joy is no longer working on my Linux box (as expected). I have just restored 2.30.10, and it is back working again. |
Perfect, thanks! Let me edit the title of the issue for clarity. |
TL;DR: for anyone reading this issue: a working workaround is to add a constraint for |
Solution to issue cannot be found in the documentation.
Issue
teleop_twist_joy does not work on MacOSX:
ros2 launch teleop_twist_joy teleop-launch.py joy_config:='xbox'
It starts up fine. But when I move the joystick it prints:
[joy_node-1] [INFO] [1741248056.857958000] [joy_node]: Unknown event type 1544
and does not generate a twist message.
I believe the error message originates from:
https://github.com/ros-drivers/joystick_drivers/blob/ros2/joy/src/joy.cpp
Line: 451
I note this works fine on Linux.
If I do (on Linux):
mamba list | grep "sdl"
I get:
ros-jazzy-sdl2-vendor 3.3.0 np126py311h15c07e3_1 robostack-jaz
zy
sdl2 2.30.10 h63c27ac_0 conda-forge
But when I do the same on my Mac I get:
ros-jazzy-sdl2-vendor 3.3.0 np126py311hd6
9bdec_4 robostack-jazzy
sdl2 2.32.50 hc0cb955_1
conda-forge
sdl3 3.2.8 h6dd79e8_0
conda-forge
I am suspicious that there may be some mixing of sdl versions. There are no sdl
's in my base environment, and it seems it is the jazzy desktop mamba install w
hich is installing all 3 sdl's on my Mac. (As confirmed by fresh install in new
environment).
Any help much appreciated.
Thanks,
Julian.
Installed packages
github won't allow me to submit report with packages listed here.
Environment info
The text was updated successfully, but these errors were encountered: