For RoboComp's keyboard-controlled robot examples, compare how keyboard input is processed in C++ versus Python. Identify the specific file names for each tutorial and describe the key differences in their input handling mechanisms as detailed in their respective documentation.
Navigate to the 'doc/code-examples/getting-started/c++' directory. Open and read the 'Keyboard-robot-controller-c++.md' tutorial to understand C++ keyboard input handling. Navigate to the 'doc/code-examples/getting-started/python' directory. Open and read the 'Keyboardrobotcontroller-python.md' tutorial to understand Python keyboard input handling. Identify the file names for both tutorials. Compare the keyboard input handling methods described in both tutorials and articulate the key difference.
The C++ tutorial file is identified as `Keyboard-robot-controller-c++.md`. The Python tutorial file is identified as `Keyboardrobotcontroller-python.md`. The description of C++ input handling accurately states the use of `istringstream` to convert string input to integer values (1 for forward, 2 for backward, 3 for left, 4 for right). The description of Python input handling accurately states the use of a `key` parameter to get input, checking for specific key presses (e.g., `KEY_UP`), and increasing a parameter on repeated presses. The key difference articulated highlights that C++ converts input to numerical integer values, while Python directly interprets specific key events, suggesting a higher-level or more direct key-event based approach.