4 int main(
int argc,
char** argv)
7 ros::init(argc, argv,
"offb_node");
8 ros::NodeHandle controlnode;
14 std::vector<control_api_waypoint> waypointList;
20 waypointList.push_back(nextWayPoint);
24 nextWayPoint.
psi = -90;
25 waypointList.push_back(nextWayPoint);
30 waypointList.push_back(nextWayPoint);
34 nextWayPoint.
psi = 90;
35 waypointList.push_back(nextWayPoint);
39 nextWayPoint.
psi = 180;
40 waypointList.push_back(nextWayPoint);
63 if (counter < waypointList.size())
65 set_destination(waypointList[counter].x,waypointList[counter].y,waypointList[counter].z, waypointList[counter].psi);
float y
distance in y with respect to your reference frame
float psi
rotation about the third axis of your reference frame
void set_destination(float x, float y, float z, float psi)
int check_waypoint_reached()
int init_publisher_subscriber(ros::NodeHandle controlnode)
int takeoff(float takeoff_alt)
float z
distance in z with respect to your reference frame
int initialize_local_frame()
float x
distance in x with respect to your reference frame
int main(int argc, char **argv)