PX4 ROS 2 Interface Library
Library to interface with PX4 from a companion computer using ROS 2
Loading...
Searching...
No Matches
px4_ros2::RatesSetpointType Class Reference

Setpoint type for direct rate control. More...

#include <px4_ros2/control/setpoint_types/experimental/rates.hpp>

Inheritance diagram for px4_ros2::RatesSetpointType:
px4_ros2::SetpointBase

Public Member Functions

 RatesSetpointType (Context &context)
 
SetpointType getSetpointType () override
 
float desiredUpdateRateHz () override
 
void update (const Eigen::Vector3f &rate_setpoints_frd_rad, const Eigen::Vector3f &thrust_setpoint_frd)
 
- Public Member Functions inherited from px4_ros2::SetpointBase
 SetpointBase (Context &context)
 
std::shared_ptr< SetpointBasegetSharedPtr ()
 
virtual void clearOptionalRequirements (px4_msgs::msg::SetpointConfigReply &setpoint_config_reply)
 
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()>
 
using SetpointType = decltype(px4_msgs::msg::SetpointConfig::type)
 
- Protected Member Functions inherited from px4_ros2::SetpointBase
void onUpdate ()
 

Detailed Description

Setpoint type for direct rate control.

Member Function Documentation

◆ desiredUpdateRateHz()

float px4_ros2::RatesSetpointType::desiredUpdateRateHz ( )
inlineoverridevirtual

Reimplemented from px4_ros2::SetpointBase.

◆ getSetpointType()

SetpointType px4_ros2::RatesSetpointType::getSetpointType ( )
inlineoverridevirtual

Returns one of px4_msgs::msg::SetpointType::TYPE_*

Implements px4_ros2::SetpointBase.


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