roboticslab-uc3m / kinematics-dynamics

Kinematics and dynamics solvers and controllers.
https://robots.uc3m.es/kinematics-dynamics/
GNU Lesser General Public License v2.1
19 stars 12 forks source link

Integrate keyboard control with SDL plugin #151

Closed PeterBowman closed 2 years ago

PeterBowman commented 6 years ago

Inspired by https://github.com/robotology/QA/issues/289#issuecomment-383506019:

wait, you don't need to develop anything new! You can use the joystick driver already provided in YARP via SDL. The name of the device is SDLJoypad.

Before starting it, just launch your preferred keyboard to joypad emulator.

A step forward in the unification of the streamingDeviceController and keyboardController apps. I was already thinking about a proper implementation of said streaming devices via the IJoypadEventDriven interface (such task spans to our yarp-devices repo).

Relevant classes (YARP 2.3.70+)

For now, just an idea that requires further investigation. How would the keyboardController's UI cope with streamingDeviceController's workflow?

PeterBowman commented 6 years ago

There is a chance to get a glimpse of how this could work with our mobile robots thanks to https://github.com/asrob-uc3m/yarp-devices/issues/10#issuecomment-391848305.

PeterBowman commented 5 years ago

The iCub folks have already integrated these joypad modules with an Xbox controller, see https://github.com/robotology/walking-controllers#how-to-run-the-joypad-module.

PeterBowman commented 2 years ago

For now, just an idea that requires further investigation. How would the keyboardController's UI cope with streamingDeviceController's workflow?

I'm going to say "no" for now, it seems like a waste of time to merge two non-trivial programs into an even larger one just to perform the same or worse (I can't see a reasonable way of mapping that many keys into a joystick equivalent).