added patch for ros-noetic-joy that falls back to sdl2#549
added patch for ros-noetic-joy that falls back to sdl2#549TedVanderfeen wants to merge 2 commits intoRoboStack:mainfrom
Conversation
…x or if the joystick headers aren't present
|
Currently not working on MacOS. Not sure if it's an SDL problem or a problem with the package yet. Will investigate. |
|
So, it looks like the SDL libraries on Conda-forge that are built for osx-arm64 are missing, something.... When I build SDL locally and run their controller/joystick/gamepad testing script, everything works. When I try the same script against the libraries and headers that Conda-forge supplies, my controller doesn't attach at all. I tried to install hidapi in case the Conda-forge version was dependant on something that was included when I built from source, but it isn't available for arm64 and I couldn't get pixi to pull the x86 version. From what I can see, SDL should fall back to iokit on MacOS devices. So this might be what is missing from the Conda-forge build. Will keep investigating. |
|
@TedVanderfeen do you have still the need for this? |
|
Only if we are somehow able to solve #554. |
See #548
Creating as draft for now until I've had a chance to test it.
The code for the
joy_node_sdlis from here with some edits by me so that it loads the default mappings into params if none are provided. This gets around needing to use the launch file that the devs above implemented if you just want "normal" behaviour when launching the node. I also fixed up some of the logic they had in the cmakelist for joy as it was a little confusing.See https://github.com/TedVanderfeen/joystick_drivers for the changes that went into generating the
.patchfile.