7 nh.param(this_node::getName() +
"/altitude",
altitude, 5.0);
8 nh.param(this_node::getName() +
"/fov_hor",
fov_hor, 1.236);
9 nh.param(this_node::getName() +
"/fov_ver",
fov_ver, 0.970);
10 nh.param(this_node::getName() +
"/local_steps",
max_steps, 20);
17 double distance, direction;
34 geometry_msgs::Pose goal;
45 if (
pos.out_of_bounds(goal))
50 if (
pos.move(goal) ==
false)
65 double t = sqrt(2 * s / a);
66 double x = a * (cos(t) + t * sin(t));
67 double y = a * (sin(t) - t * cos(t));
70 distance = hypot(x, y);
71 direction = atan2(y, x);
77 double distance, direction;
81 return pos.compute_goal(
origin, distance, direction);
unsigned int steps
Number of steps performed in the local search.
double fov_hor
Horizontal camera field of view in radian.
geometry_msgs::Pose select_goal()
Compute goal position.
double altitude
The altitude of the UAV above ground.
double fov_ver
Vertical camera field of view in radian.
behavior_state_t step()
Move the swarm member to a new position.
geometry_msgs::Pose origin
Center of the spiral movement search pattern.
void compute_involute(double &distance, double &direction)
Compute local coordinates on circle involute for current step.
behavior_state_t
An enumeration for the state of the behavior algorithm.
position pos
A helper object for position related tasks.
uav_local_coverage()
Constructor that initializes the private member variables.
int max_steps
Maximum number of steps to do in the local search.