> For the complete documentation index, see [llms.txt](https://nxp.gitbook.io/nxp-cup/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://nxp.gitbook.io/nxp-cup/gazebo/milestone-3-simple-reaction.md).

# Milestone 3 - Simple Reaction

## Overview

In Milestone 3, NXP Gazebo Summer Camp participants will use the included AprilTag software to detect objects and react to them within the simulation environment. These challenges are similar to what is used in the real NXP Cup competition to ensure that participants have a similar feel. Example code will be given for detecting AprilTags, but example code for manuevering objects will not.

![](/files/-MhxqR2drORz15i6Cvxj)

## Requirements

In this challenge, two objects will be presented to participants:

1. A stop sign
2. An object obstructing the road

Each one of these objects will be placed on opposite ends of the track. It is your job, as participants, to create algorithms to deal with these objects. There are requirements for each object:

1. Stop sign
   1. Must stop at the stop sign for (5) seconds and then continue
2. Object obstructing the road
   1. Must stop before the object for (3) seconds, go around the object without going off track, then continue
   2. Off-track is defined by the center of the car leaving the track's bounds.

## Deliverables

NXP Gazebo Summer Camp participants will be asked to submit a video recording of their car going around the track successfully as well as reacting to each object and following the requirements set above. Requirements of this video are as follows:

1. Video must be less than (10) minutes
2. Show at least (1) successful lap with the simulated cup car reacting to each obstacle
3. Use your fastest time if showing just (1) lap

## Technical Documentation

Documentation for the example code to detect AprilTags is outlined in the sub-sections of the Milestone 3 documentation. You may use the sidebar or the navigation buttons below to continue.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://nxp.gitbook.io/nxp-cup/gazebo/milestone-3-simple-reaction.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
