# micro-ROS Agent on snap!

**URL:** <https://discourse.openrobotics.org/t/micro-ros-agent-on-snap/17729>\
**Category:** Embedded\
**Tags:** embedded, ubuntu, snapcraft, micro-ros\
**Created:** [December 3, 2020, 3:55pm UTC](https://discourse.openrobotics.org/t/micro-ros-agent-on-snap/17729 "2020-12-03T15:55:03Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FraFin](https://sea2.discourse-cdn.com/flex022/user_avatar/discourse.openrobotics.org/frafin/32/7614_2.png) [@FraFin](https://discourse.openrobotics.org/u/FraFin)\
**Post date:** [December 3, 2020, 3:55pm UTC](https://discourse.openrobotics.org/t/micro-ros-agent-on-snap/17729/1 "2020-12-03T15:55:03Z")

</div>

We have great news: like the [XRCE-DDS Agent before](http://discourse.ros.org/t/micro-xrce-dds-agent-now-on-snap/16523) it, now the [micro-ROS](https://micro-ros.github.io/) Agent is wrapped and delivered as a [snap package](https://snapcraft.io/micro-ros-agent), too!

[Snap](https://snapcraft.io/) is a package manager designed to bundle and handle applications and their dependencies on several Linux distros, like Ubuntu.

 ![snap](https://us1.discourse-cdn.com/flex022/uploads/ros/original/2X/0/073246fd61d993ec7f1f60ae458c874d7d2a5482.png)  
The micro-ROS Agent bridges the micro-ROS nodes with the ROS 2 dataspace. It is the same as the [Micro XRCE-DDS Agent](https://micro-xrce-dds.docs.eprosima.com/en/latest/agent.html), with the addition of the [recently implemented Graph manager](http://discourse.ros.org/t/graph-support-in-micro-ros/17266). Indeed, ever since we added introspection capabilities to micro-ROS, the micro-ROS Agent started to diverge from that of XRCE for including a special DDS participant whose job is to scan the network in search of available ROS 2 entities, which it then publishes into a specific topic. This topic is fetched by the micro-ROS `rmw` implementation, which uses Micro XRCE-DDS underneath, to provide micro-ROS with ROS 2 graph introspection capabilities.

We prepared the Agent snap release in collaboration with @kyrofa from [Canonical](https://canonical.com/).

So, how to use this new feature?

The snap packaging of the Agent comes with two ways of running it: as a simple executable or by means of a Linux service.

The first implies the usage of the Agent’s built-in CLI, where you can specify the standard configuration parameters (such as transport, port…) directly, as follows:

```auto
micro-ros-agent <transport> <args>

```

The second launches the Agent as a Linux service running in the background; to do so, simply execute:

```auto
snap set micro-ros-agent daemon=true

```

In this case, instead of specifying the Agent’s launch parameters via the CLI, users can configure them thanks to the snap services interface, using the `snap set micro-ros-agent <param>=<value>` command. These parameters’ values are only valid when the daemon option is set to true, while they are ignored in snap run mode.

To have a look at the full list of configurable parameters, click [here](https://snapcraft.io/micro-ros-agent).
