Post · 2 min read· pp. 310–312

Overview

DocsPlugins

Every plugin that ships with Aerostack2, what each one does and how to pick one.

Authored by

  • @alvgaona

Many Aerostack2 components do their work through a plugin, loaded when the component starts. The component handles its ROS 2 interface, and the plugin holds the algorithm, so swapping a controller or a planner is a change of one parameter. Most components choose theirs with plugin_name.

ComponentPlugins
Motion controllerpid_speed_controller, differential_flatness_controller, geometric_controller
State estimatorground_truth, raw_odometry, simple_ekf
Motion behaviorsPosition and trajectory plugins for every motion behavior, plus speed and platform plugins for take off and land
Trajectory generatordynamic_mav_trajectory_generator, mav_trajectory_generator, gcopter_trajectory_generator, jerk_limited_trajectory_generator
Path planninga_star, voronoi
Map serverscan2occ_grid, depth2occ_grid, point_cloud2occ_grid
Grippertwo_fingers, dc_servo
Object perceptionaruco

Common setups

Which controller to use depends on the commands the platform accepts:

Controller sendsControllerPlatforms that accept it
Velocitiespid_speed_controllerGazebo, Crazyflie, Tello, DJI, PX4, MAVLink and the multirotor simulator
Body rates and thrustdifferential_flatness_controller or geometric_controllerBetaflight, PX4, MAVLink, the multirotor simulator, and Gazebo with its body rates control modes file

Differential flatness only takes trajectories, so pair it with the trajectory plugins of the motion behaviors and a trajectory generator. The PID speed and geometric controllers also take position references, so the position plugins work with them.

The state estimator depends on where the drone's position comes from. See choosing a plugin.

Plugins

[### Motion controller

PID speed, differential flatness and geometric control, with every gain.](/u/55e14afee5a1982b)[### State estimator

Ground truth, raw odometry and the EKF, with every setting.](/u/1e38a587301c4e42)[### Motion behaviors

How take off, land, go to and follow behaviors move the drone.](/u/b9fb0df1dc87f7e1)[### Trajectory generators

Four planners that turn waypoints into smooth trajectories.](/u/94fdb480a1e8c696)[### Path planning

A* and Voronoi planners on an occupancy grid.](/u/9554f5fe7dfaf519)[### Map server

Occupancy grids from a lidar, a depth camera or a point cloud.](/u/2d9f6777528a00ea)[### Payload

Gripper plugins for Gazebo and for a servo.](/u/8a0ba0d2e87238ae)[### Perception

ArUco marker detection.](/u/837a8f08f1e986df)

Writing a plugin

A plugin is a class that inherits from its component's base class, exported with pluginlib. The guides walk through a controller plugin, an estimator plugin and a follow reference plugin.

Last updated on November 11, 2026

[diagram

Visualization

Show drones, their trails and their references in RViz, and fly them from the RViz teleop panel.](083_2026-12-05_visualization.md)[diagram

Motion controller

The PID speed, differential flatness and geometric controllers, and every gain they take.](051_2026-12-05_motion-controller-2.md)