PX4 ROS 2 Interface Library
Library to interface with PX4 from a companion computer using ROS 2
Loading...
Searching...
No Matches
px4_ros2::SetpointBase Class Referenceabstract
Inheritance diagram for px4_ros2::SetpointBase:
px4_ros2::AttitudeSetpointType px4_ros2::DirectActuatorsSetpointType px4_ros2::FwLateralLongitudinalSetpointType px4_ros2::MulticopterGotoSetpointType px4_ros2::RatesSetpointType px4_ros2::RoverPositionSetpointType px4_ros2::RoverSpeedAttitudeSetpointType px4_ros2::RoverSpeedRateSetpointType px4_ros2::RoverSpeedSteeringSetpointType px4_ros2::RoverThrottleAttitudeSetpointType px4_ros2::RoverThrottleRateSetpointType px4_ros2::RoverThrottleSteeringSetpointType px4_ros2::TrajectorySetpointType

Public Types

using ShouldActivateCB = std::function< void()>
 
using SetpointType = decltype(px4_msgs::msg::SetpointConfig::type)
 

Public Member Functions

 SetpointBase (Context &context)
 
std::shared_ptr< SetpointBasegetSharedPtr ()
 
virtual SetpointType getSetpointType ()=0
 
virtual void clearOptionalRequirements (px4_msgs::msg::SetpointConfigReply &setpoint_config_reply)
 
virtual float desiredUpdateRateHz ()
 
void setShouldActivateCallback (const ShouldActivateCB &should_activate_cb)
 
void setActive (bool active)
 

Protected Member Functions

void onUpdate ()
 

Member Function Documentation

◆ clearOptionalRequirements()

virtual void px4_ros2::SetpointBase::clearOptionalRequirements ( px4_msgs::msg::SetpointConfigReply &  setpoint_config_reply)
inlinevirtual

Allows a setpoint class to clear an optional requirement. This is for setpoint types that support multiple variations, for example some that require local position and others that do not.

Parameters
setpoint_config_replyinput and output config

Reimplemented in px4_ros2::TrajectorySetpointType, and px4_ros2::FwLateralLongitudinalSetpointType.

◆ getSetpointType()


The documentation for this class was generated from the following file: