# ROS2

![](https://2703363869-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-CCnxDe4dTvAz3QmDw%2F-MOi_jlIAt3xI5q-kS4W%2F-MOiaA8omGb2vMzsQ0Za%2Fimage.png?alt=media\&token=9c9bb877-51f5-4f73-aa7f-4167d219131b)

## 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
```

##
