Setpoint type for direct actuator control (servos and/or motors)
More...
#include <px4_ros2/control/setpoint_types/direct_actuators.hpp>
|
|
| DirectActuatorsSetpointType (Context &context) |
| |
| SetpointType | getSetpointType () override |
| |
| float | desiredUpdateRateHz () override |
| |
| void | updateServos (const Eigen::Matrix< float, kMaxNumServos, 1 > &servo_commands) |
| |
| void | updateMotors (const Eigen::Matrix< float, kMaxNumMotors, 1 > &motor_commands) |
| |
|
| SetpointBase (Context &context) |
| |
|
std::shared_ptr< SetpointBase > | getSharedPtr () |
| |
| virtual void | clearOptionalRequirements (px4_msgs::msg::SetpointConfigReply &setpoint_config_reply) |
| |
|
void | setShouldActivateCallback (const ShouldActivateCB &should_activate_cb) |
| |
|
void | setActive (bool active) |
| |
|
|
static constexpr int | kMaxNumMotors = px4_msgs::msg::ActuatorMotors::NUM_CONTROLS |
| |
|
static constexpr int | kMaxNumServos = px4_msgs::msg::ActuatorServos::NUM_CONTROLS |
| |
|
|
using | ShouldActivateCB = std::function< void()> |
| |
|
using | SetpointType = decltype(px4_msgs::msg::SetpointConfig::type) |
| |
|
void | onUpdate () |
| |
Setpoint type for direct actuator control (servos and/or motors)
◆ desiredUpdateRateHz()
| float px4_ros2::DirectActuatorsSetpointType::desiredUpdateRateHz |
( |
| ) |
|
|
inlineoverridevirtual |
◆ getSetpointType()
| SetpointType px4_ros2::DirectActuatorsSetpointType::getSetpointType |
( |
| ) |
|
|
inlineoverridevirtual |
◆ updateMotors()
| void px4_ros2::DirectActuatorsSetpointType::updateMotors |
( |
const Eigen::Matrix< float, kMaxNumMotors, 1 > & |
motor_commands | ) |
|
Send motors setpoint
- Parameters
-
| motor_commands | range: [-1, 1], where 1 means maximum positive thrust, -1 maximum negative (if not supported by the output, <0 maps to NaN), and NaN maps to disarmed (stop the motors) |
◆ updateServos()
| void px4_ros2::DirectActuatorsSetpointType::updateServos |
( |
const Eigen::Matrix< float, kMaxNumServos, 1 > & |
servo_commands | ) |
|
Send servos setpoint
- Parameters
-
| servo_commands | range: [-1, 1], where 1 means maximum positive position, -1 maximum negative and NaN maps to disarmed |
The documentation for this class was generated from the following file: