49 #include <uORB/topics/position_controller_status.h> 50 #include <uORB/topics/vehicle_command.h> 51 #include <uORB/topics/vehicle_status.h> 52 #include <uORB/topics/vehicle_trajectory_waypoint.h> 54 #include <matrix/matrix/math.hpp> 73 void injectAvoidanceSetpoints(matrix::Vector3f &pos_sp, matrix::Vector3f &vel_sp,
float &yaw_sp,
float &yaw_speed_sp);
85 const matrix::Vector3f &next_wp,
const float next_yaw,
const float next_yawspeed);
101 float target_acceptance_radius,
const matrix::Vector2f &closest_pt);
113 vehicle_trajectory_waypoint_s _desired_waypoint = {};
118 matrix::Vector3f _curr_wp = {};
119 matrix::Vector3f _position = {};
120 matrix::Vector3f _failsafe_position = {};
125 void _publishAvoidanceDesiredWaypoint();
130 void _publishVehicleCmdDoLoiter();
Definition: px4_param.h:313
void updateAvoidanceDesiredWaypoints(const matrix::Vector3f &curr_wp, const float curr_yaw, const float curr_yawspeed, const matrix::Vector3f &next_wp, const float next_yaw, const float next_yawspeed)
Updates the desired waypoints to send to the obstacle avoidance system.
Definition: ObstacleAvoidance.cpp:128
__BEGIN_DECLS typedef void * orb_advert_t
ORB topic advertiser handle.
Definition: uORB.h:134
High-resolution timer with callouts and timekeeping.
Generally used magic defines.
Simple array that contains a dynamic amount of Subscription<T> instances.
Definition: px4_param.h:318
C++ base class for modules/classes using configuration parameters.
Definition: px4_module_params.h:46
void injectAvoidanceSetpoints(matrix::Vector3f &pos_sp, matrix::Vector3f &vel_sp, float &yaw_sp, float &yaw_speed_sp)
Inject setpoints from obstacle avoidance system into FlightTasks.
Definition: ObstacleAvoidance.cpp:88
void updateAvoidanceDesiredSetpoints(const matrix::Vector3f &pos_sp, const matrix::Vector3f &vel_sp)
Updates the desired setpoints to send to the obstacle avoidance system.
Definition: ObstacleAvoidance.cpp:153
Definition: ObstacleAvoidance.hpp:58
Definition: SubscriptionArray.hpp:46
void checkAvoidanceProgress(const matrix::Vector3f &pos, const matrix::Vector3f &prev_wp, float target_acceptance_radius, const matrix::Vector2f &closest_pt)
Checks the vehicle progress between previous and current position waypoint of the triplet...
Definition: ObstacleAvoidance.cpp:164