ardupilot/libraries/AP_DDS/AP_DDS_ExternalControl.h

20 lines
611 B
C++

#pragma once
#if AP_DDS_ENABLED
#include "ardupilot_msgs/msg/GlobalPosition.h"
#include "geometry_msgs/msg/TwistStamped.h"
#include <AP_Common/Location.h>
class AP_DDS_External_Control
{
public:
// REP-147 Goal Interface Global Position Control
// https://ros.org/reps/rep-0147.html#goal-interface
static bool handle_global_position_control(ardupilot_msgs_msg_GlobalPosition& cmd_pos);
static bool handle_velocity_control(geometry_msgs_msg_TwistStamped& cmd_vel);
private:
static bool convert_alt_frame(const uint8_t frame_in, Location::AltFrame& frame_out);
};
#endif // AP_DDS_ENABLED