If the robot is started for the simulation via "upload", instead of the webots launcher, a warning appears for the missing sound files.
Create a extra script to handle the sound files in this use case. The problem is that "upload" starts the executable with the project root as working directory. This could be solved in two ways now:
- Change in the script the working directory to .pio/build/
- Copy sounds files to project root /sounds
- Instead of calling the program.exe, call webots launcher.
If the robot is started for the simulation via "upload", instead of the webots launcher, a warning appears for the missing sound files.
Create a extra script to handle the sound files in this use case. The problem is that "upload" starts the executable with the project root as working directory. This could be solved in two ways now: