|
1 |
| -This repository contains code for the robot controller, it should be added as a submodule to the [main Webots project repository](https://github.com/IDP-L211/idp). |
| 1 | +# Team Optimal Robot Controller |
2 | 2 |
|
3 |
| -Extensive inheritance from the provided `controller` module (a C interface) will be required, so it is useful to set up a proper development environment (consider using a virtual environment and an IDE) and set the robot controller to `<extern>` in Webots. More information at https://cyberbotics.com/doc/guide/using-your-ide?tab-language=python. The main steps for PyCharm are: |
| 3 | +This repository contains code for the robot controller, it should be added as a |
| 4 | +submodule to the [main Webots project |
| 5 | +repository](https://github.com/IDP-L211/idp). |
| 6 | + |
| 7 | +## Development |
| 8 | + |
| 9 | +It is useful to set up a proper development environment with the provided |
| 10 | +`controller` module (a C interface) included in your linter/IDE and set the |
| 11 | +robot controller to `<extern>` in Webots for debugging. More information at |
| 12 | +https://cyberbotics.com/doc/guide/using-your-ide?tab-language=python. The main |
| 13 | +steps for PyCharm are: |
4 | 14 |
|
5 | 15 | 1. Configure the virtual environment in _Project Interpreter_
|
6 |
| -2. Add the correct Webots `controller` directory (depending on your system and Python configuration, `controller/_controller.so` is slightly different) as _Content Root_ under _Project Structure_ |
7 |
| -3. Create a _Run/Debug Configuration_, setting the [relevant environment variables](https://cyberbotics.com/doc/guide/running-extern-robot-controllers?tab-language=python) |
| 16 | +2. Add the correct Webots `controller` directory (depending on your system and |
| 17 | + Python configuration, `controller/_controller.so` is slightly different) as |
| 18 | + _Content Root_ under _Project Structure_ |
| 19 | +3. Create a _Run/Debug Configuration_, setting the [relevant environment |
| 20 | + variables](https://cyberbotics.com/doc/guide/running-extern-robot-controllers?tab-language=python) |
8 | 21 |
|
9 |
| -If you still prefer to use the system Python or run controller directly from Webots, have a look at https://cyberbotics.com/doc/guide/using-python. This is especially important for people using MacOS and Homebrew, you may need to set the full path to your Python interpreter (get it by `which python3`). |
| 22 | +If you prefer to run controller directly from Webots, have a look at |
| 23 | +https://cyberbotics.com/doc/guide/using-python. This is especially important |
| 24 | +for people using macOS and Homebrew, you may need to set the full path to your |
| 25 | +Python interpreter (get it by `which python3`). |
0 commit comments