> 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/updating-nxp-gazebo.md).

# Updating NXP Gazebo

## Guide

Most of the folders in NXP Gazebo are stored in git repositories. This makes it easy to update to the latest software. To update, copy the script at the bottom of the page and paste it into a file called "update\_nx&#x70;*\_*&#x67;azebo.sh". Then, run the command below:

```
$ chmod a+x update_nxp_gazebo.sh
```

{% hint style="warning" %}
**NOTE**: This will apply to most NXP Gazebo Summer Camp participants -

If you have made edits to the files in any of these repositories, it is recommended to make a backup of those files before running this. There could be merge conflicts and we will handle those on a case by case basis.
{% endhint %}

```
#!/bin/bash

cd ~/ros2ws/nxp_gazebo/ && git pull
cd ~/ros2ws/nxp_gazebo/ && git pull
cd ~/ros2ws/gazebo_apriltag/ && git pull
cd ~/ros2ws/src/aim_line_follow_c/ && git pull
cd ~/ros2ws/src/nxp_cup_interfaces/ && git pull
cd ~/ros2ws/src/nxp_cup_vision/ && git pull
cd ~/ros2ws/src/sim_gazebo_bringup && git pull
```


---

# 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/updating-nxp-gazebo.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.
