Skip to content
This repository has been archived by the owner on Dec 1, 2023. It is now read-only.

[6D teleop] pygame #17

Closed
jschleicher opened this issue Nov 25, 2019 · 3 comments · Fixed by #28
Closed

[6D teleop] pygame #17

jschleicher opened this issue Nov 25, 2019 · 3 comments · Fixed by #28
Assignees
Labels
enhancement New feature or request

Comments

@jschleicher
Copy link
Contributor

Switch implemantation to pygame

@jschleicher jschleicher added the enhancement New feature or request label Nov 25, 2019
@DamKoVosh
Copy link
Collaborator

Problem with pygame is, it does not have a headless mode, at least not for keyboard interaction. So we would need to have a window with focus. Since this is not our current goal, we will not take pygame for the moment.
Searching and Evaluating alternatives at the moment

@DamKoVosh
Copy link
Collaborator

The only working possible solution i can find is: pynput
This works with pressing and releasing keys, so all currently pressed keys can be figuered out.
This also has a rosdep, so that would not be the problem

However:

On Linux, pynput uses X, so the following must be true:

-  An X server must be running.
-  The environment variable $DISPLAY must be set.

The latter requirement means that running pynput over SSH generally will not work. To work around that, make sure to set $DISPLAY:

$ DISPLAY=:0 python -c 'import pynput'

So we would have ssh limitations. Not sure if running jogging above ssh is imporend for us...

@jschleicher
Copy link
Contributor Author

Closing as described above and in #28

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants