Sep-26-2018, 11:33 PM
Hello!
I'm very new to using Python. I'm attempting to create code that will play an audio file based off an input.
I'm working on getting a robot to ask for help removing obstacles from its path when it can see that it cannot pass through. For example, if it is heading down a hall way and a chair is in the way of its path, it will repeatedly play audio asking for the obstacle to be removed. After playing the audio file it will reevaluate whether the obstacle is moved. If it is not, it will replay the file. This loop will continue until the obstacle is moved.
I'm uncertain of how to create the loop. As for the part of the code that evaluates the obstacle, I believe I can type that piece, it is the code for the audio I need assistance with.
Thank you so much for your help
and let me know if my question doesn't make sense or you need more info!
I'm very new to using Python. I'm attempting to create code that will play an audio file based off an input.
I'm working on getting a robot to ask for help removing obstacles from its path when it can see that it cannot pass through. For example, if it is heading down a hall way and a chair is in the way of its path, it will repeatedly play audio asking for the obstacle to be removed. After playing the audio file it will reevaluate whether the obstacle is moved. If it is not, it will replay the file. This loop will continue until the obstacle is moved.
I'm uncertain of how to create the loop. As for the part of the code that evaluates the obstacle, I believe I can type that piece, it is the code for the audio I need assistance with.
Thank you so much for your help
