The full uninterrupted program can be found here: C++ | Pythonįirst we initialise the robot and sensors. Try and build this up by yourself first, referring back to this if you need. Exemplar Codeīelow we step through the example code developed step by step, explaining what is going on. Remember, for help/advice, or if you want to share ideas, head to discord. To search quicker, could you vary the speed depending on how close you are to walls/objects? Look at using the sensor values to calculate the speed of the wheels.You will still need to use the front distance sensors, so think carefully about what order to put you if statements for the different sensors! To do this think about how you could use the distance sensors from one side of the robot to track along a wall. Alter the program to track around in the side walls of the maze.Investigate different speeds/motions and sensor values - what is the most efficient values for navigating around the maze?.Tasks/ActivitiesĪfter working on this seminar, work through the following tasks (of increasing difficulty): If you are unfamilar with how to find the various fields, visit the “Getting Started” section of the “Tutorials” section. Fieldįor the sample program, we will be working in a field similar to the one shown below. From there, you can export your robot as a JSON file, which you can then load into the robot window in Webots. You can design your robot here, adding the optimal sensors at the optimal positions. In this challenge, the robot is a customizable Epuck. In this seminar we cover how to generate a first robot controller to navigate around a maze like environment.
0 Comments
Leave a Reply. |