getting_started:tutorials:inputdev1
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| getting_started:tutorials:inputdev1 [2021/03/31 17:13] – [Reading from a Mouse] ursgraf | getting_started:tutorials:inputdev1 [2026/04/12 16:31] (current) – [Reading from a XBox Controller] ursgraf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Reading from a Mouse / Keyboard / XBox Controller / Space Navigator ====== | ====== Reading from a Mouse / Keyboard / XBox Controller / Space Navigator ====== | ||
| - | For each input device there is a special block in the control system which handles the specific device, see [[eeros_architecture: | + | For each input device there is a special block in the control system which handles the specific device, see [[eeros_architecture: |
| ===== Reading from a Mouse ===== | ===== Reading from a Mouse ===== | ||
| - | In the EEROS library you will find a directory with examples. For this example see [[https:// | + | In the EEROS library you will find a directory with examples. For this example see [[https:// |
| Open a shell in the build directory of your EEROS library and run | Open a shell in the build directory of your EEROS library and run | ||
| < | < | ||
| - | $ sudo ./ | + | $ ./ |
| </ | </ | ||
| This examples reads four axis of a mouse together with three buttons and outputs the results periodically. Further, the safety system checks for the middle button to be pressed. This causes a level change. As soon as the button is released the safety system changes back to the first level.\\ | This examples reads four axis of a mouse together with three buttons and outputs the results periodically. Further, the safety system checks for the middle button to be pressed. This causes a level change. As soon as the button is released the safety system changes back to the first level.\\ | ||
| Line 19: | Line 19: | ||
| ===== Reading from a Keyboard ===== | ===== Reading from a Keyboard ===== | ||
| - | In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run | + | In the EEROS library you will find a directory with examples. |
| + | |||
| + | Open a shell in the build directory of your EEROS library and run | ||
| < | < | ||
| - | $ sudo ./ | + | $ ./ |
| </ | </ | ||
| - | Study the code of the example together with the code of the '' | + | Study the code of the example together with the code of the '' |
| ===== Reading from a XBox Controller ===== | ===== Reading from a XBox Controller ===== | ||
| - | In the EEROS library you will find a directory with examples. Open a shell in the build directory of your EEROS library and run | + | In the EEROS library you will find a directory with examples. |
| + | |||
| + | Open a shell in the build directory of your EEROS library and run | ||
| < | < | ||
| - | $ sudo ./ | + | $ ./ |
| </ | </ | ||
| This examples reads and outputs periodically all 8 buttons and 8 axis of a XBox controller. Further, the safety system checks for the button ' | This examples reads and outputs periodically all 8 buttons and 8 axis of a XBox controller. Further, the safety system checks for the button ' | ||
| Line 33: | Line 37: | ||
| ===== Reading from a Space Navigator ===== | ===== Reading from a Space Navigator ===== | ||
| + | In the EEROS library you will find a directory with examples. For this example see [[https:// | ||
| + | |||
| Open a shell in the build directory of your EEROS library and run | Open a shell in the build directory of your EEROS library and run | ||
| < | < | ||
| - | $ sudo ./ | + | $ ./ |
| </ | </ | ||
| This examples reads and outputs periodically the 3 position and 3 rotation axis together with the state of the 2 buttons of a space navigator mouse. Further, the safety system checks for the left button to be pressed. This causes a level change. As soon as the button is released the safety system changes back to the first level. | This examples reads and outputs periodically the 3 position and 3 rotation axis together with the state of the 2 buttons of a space navigator mouse. Further, the safety system checks for the left button to be pressed. This causes a level change. As soon as the button is released the safety system changes back to the first level. | ||
getting_started/tutorials/inputdev1.1617203604.txt.gz · Last modified: by ursgraf
