Mobile Robot Control 2024 The Iron Giant

From Control Systems Technology Group
Revision as of 17:15, 29 April 2024 by M.d.klein@student.tue.nl (talk | contribs) (Added exercise results Marten)
Jump to navigation Jump to search

Group members:

Caption
Name student ID
Marten de Klein 1415425
Ruben van de Guchte 1504584
Vincent Hoffmann 1897721
Adis Husanović 1461915
Lysander Herrewijn 1352261
Timo van der Stokker 1228489

Week 2 exercises

{Setup} Exercise 1, [NAME]:

[link to Gitlab code with comments (We should discuss how we want to format the exercises branch of git.)]

[Design choices, what distance to stop, how does your code retrieve the distance, did you find any limitations?]

[Screen capture of simulation driving and stopping]

{Setup} Exercise 2, [NAME]:

[link to Gitlab screen capture, I guess we want a video to see the robots stopping, lets aim for 20s max per person. I would recommend https://wiki.ubuntuusers.de/recordMyDesktop/, very easy to use (! Note Linux has built in Screen capture software.... use ctrl, alt, shift r to start and stop recording, capture is stored in videos). To make it more compact, convert it to mp4 in you machine and it can then easily be pushed to gitlab. If people feel this is overkill, lets discuss wednesday.][what did you notice?]

{Vergeet dit niet in het Engels te schrijven!}


Exercise 1, Lysander Herrewijn:

Code

The code utilizes the minimum of the scan data. It loops over all data and saves the smallest distance. If the distance is smaller than 0.3, the robot drives forward. However, if the smallest distance is smaller than 0.3, it will rotate in counter clockwise direction. When new scanner data is available, the distance given by the smallest laser data is redefined. At a certain point, the robot has turned enough such that it will drive forward again until it meets a new wall. The distance of 0.3 is chosen, as it gives the robot enough space to make its turn, with a margin of error in the scanner data and for turning.

Screen capture exercise 1


Exercise 2, Lysander Herrewijn:

Screen capture exercise 2 map 1

The robot behaves as expected. It drives forward, gets closer to the wall, the scanner data indicates the robot is getting to close and it starts to turn in clockwise direction. It goes forward again until it gets too close to the left wall.

Screen capture exercise 2 map 1

In this case, the robot can pass the block slightly. However, as the scanner data indicates a wall is too close, it stops driving forward and start turning. Do notice the turn is less sharp as in previous example, as it needs to turn less degrees in counter clockwise direction for the scanner to not observe the obstacle. At this point, it can move forward and the robot is sure it will not hit anything in front of it.


Exercise 1, Marten de Klein:

Code

The laser data is used to stop the robot if the distance to an object is smaller than 0.15 m. Since the robot only has to stop for this exercise the most straightforward method is to stop if any of the laser data becomes smaller than this distance. This also means that if the robot moves past an object very close the robot will stop.

Screen capture exercise 1


Exercise 2, Marten de Klein:

Screen capture exercise 2 map 1

Screen capture exercise 2 map 2

The robot functions in both maps as desired. The robot stops before the object in the first map. The robot moves along the side of the object in the second map and stops when encountering the wall.