... | ... | @@ -252,6 +252,16 @@ It is worth noting that this is just an example of a solution to the problem wit |
|
|
![plan](http://gitlab.au.dk/uploads/group-22/lego/f151686264/plan.png)
|
|
|
##### Fig. 30 - Our plan to make the robot drive from A to B in a straight line.
|
|
|
|
|
|
In comparison to a real life scenario you could argue that most people occupies a certain amount of space in a room and thus use a predefined hardcoded avoidance sequence. However it seems more reasonable if the robot used it sensors while avoiding an object to compensate for unknown factors. For example it would be crucial to detect if it has to avoid just one person or a large group of persons or a person pushing a stroller.
|
|
|
|
|
|
### Implementation:
|
|
|
We used the class PilotSquare.java and modified it in order to complete the task. The main modifications are showed below:
|
|
|
|
|
|
## Result
|
|
|
The robot was able to drive along a path with a fixed length and avoid the object encountered in various positions.
|
|
|
|
|
|
Indsæt video - Fig. 31
|
|
|
|
|
|
## References
|
|
|
|
|
|
[1] - http://legolab.cs.au.dk/DigitalControl.dir/NXT/Lesson10.dir/paper58.pdf
|
... | ... | |