|
PX4 ROS 2 Interface Library
Library to interface with PX4 from a companion computer using ROS 2
|
Setpoint type for rover speed and attitude control. More...
#include <px4_ros2/control/setpoint_types/experimental/rover/speed_attitude.hpp>
Public Member Functions | |
| RoverSpeedAttitudeSetpointType (Context &context) | |
| Configuration | getConfiguration () override |
| float | desiredUpdateRateHz () override |
| void | update (float speed_body_x, float yaw_setpoint, std::optional< float > speed_body_y={}) |
| Send a rover speed setpoint and a rover attitude setpoint to the flight controller. More... | |
Public Member Functions inherited from px4_ros2::SetpointBase | |
| SetpointBase (Context &context) | |
| std::shared_ptr< SetpointBase > | getSharedPtr () |
| void | setShouldActivateCallback (const ShouldActivateCB &should_activate_cb) |
| void | setActive (bool active) |
Additional Inherited Members | |
Public Types inherited from px4_ros2::SetpointBase | |
| using | ShouldActivateCB = std::function< void()> |
Protected Member Functions inherited from px4_ros2::SetpointBase | |
| void | onUpdate () |
Setpoint type for rover speed and attitude control.
| void px4_ros2::RoverSpeedAttitudeSetpointType::update | ( | float | speed_body_x, |
| float | yaw_setpoint, | ||
| std::optional< float > | speed_body_y = {} |
||
| ) |
Send a rover speed setpoint and a rover attitude setpoint to the flight controller.
| speed_body_x | [m/s] Speed setpoint in body x direction. Takes values in [-inf (Backwards), inf (Forwards)]. |
| yaw_setpoint | [rad] Yaw setpoint in NED frame. Takes values in [-pi, pi]. |
| speed_body_y | [m/s] Mecanum only: Speed setpoint in body y direction (Only relevant for mecanum rovers). Takes values in [-inf (Left), inf (Right)]. |