-
Notifications
You must be signed in to change notification settings - Fork 195
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
Allow JoypadControlServer to run single thread #3101
base: master
Are you sure you want to change the base?
Allow JoypadControlServer to run single thread #3101
Conversation
…the service interface Apparently, when the signal handler was setting the static flag "terminated" to false, it was also attempting to close immediately the terminator port, but this was receiving the termination message and some race condition seemed to occur on Windows
…w avoiding multithreading
@S-Dafarra yarp already has a GUI with keybpord support to control the 2D direction of a robot: yarpmobilebasegui. |
Quality Gate failedFailed conditions |
See ami-iit/yarp-device-keyboard-joypad#3 (comment) I was not really aware of yarpmobilebasegui. I needed a drop in replacement for the SDLJoypad with a good degree of customization on the axis and buttons order |
The main problem here is that |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
on hold
I realized that in the single thread case I was not updating the variable with the last run time. Fixed with b060a6e |
Quality Gate failedFailed conditions |
I developed a device that can emulate a joypad using a GUI (https://github.com/ami-iit/yarp-device-keyboard-joypad). Since on macOS the GUIs can be opened only from the main thread, I needed to allow the possibility of avoiding running the
JoypadControlServer
in a single threaded mode.In order to do so, I had to implement the
IService
interface on bothJoypadControlServer
andDeviceBundler
. This PR also includes the modifications of #3100cc @randaz81 @traversaro @Nicogene