|
PX4 ROS 2 Interface Library
Library to interface with PX4 from a companion computer using ROS 2
|
Provides control of one or more extra actuators. More...
#include <px4_ros2/control/peripheral_actuators.hpp>
Public Member Functions | |
| PeripheralActuatorControls (Context &context) | |
| void | set (const Eigen::Matrix< float, kNumActuators, 1 > &values) |
| void | set (float value, unsigned index=0) |
Static Public Attributes | |
| static constexpr int | kNumActuators = 6 |
Provides control of one or more extra actuators.
It maps to the 'Peripheral Actuator Set' output functions on the PX4 side. This can be used by a mode independent from the setpoints.
| void px4_ros2::PeripheralActuatorControls::set | ( | const Eigen::Matrix< float, kNumActuators, 1 > & | values | ) |
Control actuators
| values | range [-1, 1], NAN=ignore value |
| void px4_ros2::PeripheralActuatorControls::set | ( | float | value, |
| unsigned | index = 0 |
||
| ) |
Sets a single actuator output
| value | range [-1, 1] |
| index | range [0, kNumActuators) |