# ROS2

![](/files/-MOiaA8omGb2vMzsQ0Za)

## ROS2 Foxy Fitzroy Install Guide

{% hint style="info" %}
**NOTE: ROS2 is new, but we suggest you use it over ROS1, as ROS1 will be deprecated in the near future. You may run into issues with the ROS2 section of this Gitbook. If you have any issues with the guide, please email <landon.haugh@nxp.com> if external, or use Teams/Email if internal.**\
\
**MAVROS is not compatible with ROS2. MicroRTPS and PX4 ROS Com replace MAVROS.**
{% endhint %}

Follow the guide at the link below to install ROS2 Foxy Fitzroy on your NavQ running the Demo image.

{% embed url="<https://index.ros.org/doc/ros2/Installation/Foxy/Linux-Install-Debians/#setup-sources>" %}

{% hint style="warning" %}
**Note 1:** at *Setup Sources* step you might get an error message by curl. To avoid this, run the following commands:
{% endhint %}

```
sudo rm -rf /usr/lib/libcurl*
sudo apt install curl
```

{% hint style="warning" %}
**Note 2:** at *Install ROS2 package* step, run the `ros-foxy-ros-base` installer, as the Desktop tools are not needed on NavQ:
{% endhint %}

```
sudo apt install ros-foxy-ros-base
```

##


---

# Agent Instructions: 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:

```
GET https://nxp.gitbook.io/8mmnavq/navq-developer-guide/software-support/installing-ros2-foxy.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
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.
