32 Footstep::Footstep(
double x,
double y,
double theta,
double step_cost,
double cell_size,
int num_angle_bins,
int max_hash_size)
33 : ivCellSize(cell_size)
34 , ivNumAngleBins(num_angle_bins)
35 , ivAngleBinSize(2.0*M_PI / ivNumAngleBins)
37 , ivStepCost(step_cost)
38 , ivMaxHashSize(max_hash_size)
39 , ivDiscSuccessorLeft(num_angle_bins)
40 , ivDiscSuccessorRight(num_angle_bins)
41 , ivDiscPredecessorLeft(num_angle_bins)
42 , ivDiscPredecessorRight(num_angle_bins)
76 int x = current.
getX();
77 int y = current.
getY();
78 int yaw = current.
getYaw();
121 int x = current.
getX();
122 int y = current.
getY();
123 int yaw = current.
getYaw();
160 double cont_footstep_x, cont_footstep_y;
162 double theta_cos = cos(cont_global_theta);
163 double theta_sin = sin(cont_global_theta);
166 cont_footstep_x = theta_cos * x - theta_sin * y;
167 cont_footstep_y = theta_sin * x + theta_cos * y;
173 cont_footstep_x = theta_cos * x + theta_sin * y;
174 cont_footstep_y = theta_sin * x - theta_cos * y;
182 if (global_theta < 0)
TFSIMD_FORCE_INLINE const tfScalar & y() const
TFSIMD_FORCE_INLINE const tfScalar & x() const
def normalize_angle(angle)