Scripts 3avoid_obstacles.py y 3avoid_obstacles_mod.py#1
Open
alejandrobrazabarba wants to merge 17 commits into
Open
Scripts 3avoid_obstacles.py y 3avoid_obstacles_mod.py#1alejandrobrazabarba wants to merge 17 commits into
alejandrobrazabarba wants to merge 17 commits into
Conversation
… que provocaba que girara continuamente en un único sentido
…otores al inicio para asegurarnos de que no se están moviendo
…. Ahora se para si realiza un número de giros consecutivos superior al establecido
…les.py en la que el robot gira continuamente mientras que detecte un obstáculo, siempre que no supere cierto limite de tiempo girando, en cuyo caso parará los motores hasta que el obstáculo desaparezca.
…parada, y un signo en el comando de velocidad de un motor
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
El primer script (3avoid_obstacles.py) incluye la modificación para que el robot no se quede quieto permanentemente tras superar el límite de giros. En este caso, cuando el obstáculo desaparezca se volverá a mover.
El segundo script, además de esa modificación, evita que el robot arranque y pare cuando está evitando el obstáculo. Una vez que ha comenzado a girar, no parará hasta que supere el límite de giros o encuentre un hueco libre.