ECSE211-Lab 4 Navigation Solved

30.00 $

Category:
Click Category Button to View Your Next Assignment | Homework

You'll get a download link with a: zip solution files instantly, after Payment

Securely Powered by: Secure Checkout

Description

Rate this product
  1. Design a system that allows the robot to drive to a specified set of coordinates, known as waypoints.
  2. Implement the design using previous implementations of the Odometer.
  3. Evaluate the design and ensure it can navigate effectively around a field.

Design requirements

The following design requirements must be met:

  • The robot must navigate through a series of specified points using the minimal distance.
  • A list of waypoints must be provided in one location in the code.
  • The robot must use the grid system found on the play floor, where the origin is the starting corner of a tile.
  • Waypoints will be given with respect to the tile grid system. For example, (1, 0) will be located

30.48 cm to the right of the origin (0, 0).

  • When turning to a waypoint, the robot must use the minimal angle needed to turn to it.

 

 

Demonstration

The design must satisfy the requirements by completing the demonstration outlined below.

Design presentation

Before demoing the design, your group will be asked some questions for less than 5 minutes. You will present your design and answer questions designed to test your individual understanding of the lab concepts. Each person will be graded individually.

Simple Navigation

Your robot will be placed in a corner of the playing field with walls, exactly as in the previous lab. Once again, your robot should localize and navigate to (1, 1). From that point on the 4×4 tile grid, the robot must travel through 5 waypoints. The TA will specify the waypoints during the demo (see FAQ). You will add them to your code and upload your solution to the robot. An example is shown below in Figure 1 using a minimal angle needed to turn at each waypoint. A maximal angle turn must be avoided (see FAQ).

**It is highly recommended that the robot localizes every few waypoints (at least twice), both to increase accuracy and to help in preparation for the final project**

 

  • are given for turning using a minimal angle (marked in green in Figure 1) at all the waypoints. 0 points are given if the robot turns using a maximal angle (marked in red in Figure 1) at any of the 5 waypoints.
  • are given for reaching the last waypoint within an error tolerance of 3 cm using a Euclidean distance measure. The Euclidean distance error ϵ is defined by the formula shown below, where XD and YD represent the destination waypoint, and XF and YF represent the final position of the robot. Penalties are defined below.

 

𝜖=√(𝑋𝐷−𝑋𝐹)2+(𝑌𝐷−𝑌𝐹)2

BONUS: Simple Navigation on larger area

10 bonus points will be awarded if the robot, starting from the (1, 1) point on the 8×8 tile grid, can reach the last waypoint within an error tolerance of 3 cm using a Euclidean distance measure.

 

 

 

 

 

 

The following point grid for navigation is used:

    [0, 3] cm         →         10 points

    (4, 6] cm         →        5 points

    (6, ∞) cm        →         0 points

 

 

 

Figure 1: Example robot path 1 (labelled)

Implementation instructions

  1. Adjust the parameters of your controller, if any, to minimize the distance between the desired destination and the final position of the robot. Simultaneously, you should aim to minimize the number of oscillations made by the robot around its destination before stopping.
  2. Write a program to travel through a set of waypoints. For example, Figure 2 shown below follows (3, 2), (2, 2), (2, 3), and (3, 1) in order.

Figure 2: Example robot path 1.

 

 

 

 

Report Requirements

The following sections must be included in your report. Answer all questions in the lab report and copy them into your report. For more information, refer to ECSE211Submission Instructions.pdf. Always provide justifications and explanations for all your answers.

 

There is a page limit of 6 pages, in 12 pt font, (approximately 3000 words) for this report, excluding images and tables. You can either include images/tables in the report (they will not be included in your page count) or create an appendix and reference it in the report. The appendix will not count as part of your page count.

Section 1: Design Evaluation

You should concisely explain the overall design of your software and hardware. You must present: (1) your workflow (2) an overview of the hardware design (3) an overview of the software functionality. You must briefly talk about your design choices before arriving at your final design. Visualizing hardware and software with graphics (i.e. flowcharts, class diagrams for workflow and software, and pictures for hardware) must be shown.

Section 2: Test Data

This section describes what data must be collected to evaluate your design requirements. Collect the data using the methodology described below and present it in your report in a formatted table.

Navigation test (8 independent trials)

  1. Program the robot to travel to waypoints (3, 2), (2, 2), (2, 3), and (3, 1) as in Figure 2.
  2. Note down the destination waypoint (XD,YD) in cm.
  3. Place the robot on the origin of a grid tile.
  4. Ensure there are no obstacles in the robot’s path.
  5. Run the program to drive the robot through the waypoints specified in Step 1.
  6. Record (XF,YF) which is the final position of the robot.

Section 3: Test Analysis

  • Compute the Euclidean error distance ϵ between (XF,YF) and (XD,YD) for each trial in a table.
  • Compute the mean and sample standard deviation for error ϵ computed in the Navigation test. Be sure to use the show general formulas and sample calculations.

Section 4: Observations and Conclusions

Answer the following questions:

  • Are the errors you observed due to the odometer or navigator? What are the main sources?
  • How accurately does the navigation controller move the robot to its destination?
  • At which waypoints did you decide to localize and why? What are the advantages and disadvantages to localizing at every waypoint?

Section 5: Further Improvements

What steps can be taken to reduce the errors you discussed above? Identify at least one hardware

and one software solution. Provide explanations as to why they would work.

  • Lab4-ovlrk5.zip