|
| env_base () |
| Simple constructor.
|
|
virtual bool | is_goal (const Waypoint< Dim > &state) const |
| Check if state hit the goal region, use L-1 norm.
|
|
virtual decimal_t | get_heur (const Waypoint< Dim > &state) const |
| Heuristic function. More...
|
|
virtual decimal_t | cal_heur (const Waypoint< Dim > &state, const Waypoint< Dim > &goal) const |
| calculate the cost from state to goal
|
|
Veci< Dim > | round (const Vecf< Dim > &vec, decimal_t res) const |
| Replace the original cast function.
|
|
std::string | to_string (const Veci< Dim > &vec) const |
| Convert a vec to a string.
|
|
void | forward_action (const Waypoint< Dim > &curr, int action_id, Primitive< Dim > &pr) const |
| Recover trajectory.
|
|
void | set_u (const vec_E< VecDf > &U) |
| Set control input.
|
|
void | set_v_max (decimal_t v) |
| Set max vel in each axis.
|
|
void | set_a_max (decimal_t a) |
| Set max acc in each axis.
|
|
void | set_j_max (decimal_t j) |
| Set max acc in each axis.
|
|
void | set_yaw_max (decimal_t yaw) |
| Set max acc in each axis.
|
|
virtual void | set_prior_trajectory (const Trajectory< Dim > &traj) |
| Set prior trajectory.
|
|
void | set_dt (decimal_t dt) |
| Set dt for primitive.
|
|
void | set_tol_pos (decimal_t pos) |
| Set distance tolerance for goal region.
|
|
void | set_tol_vel (decimal_t vel) |
| Set velocity tolerance for goal region.
|
|
void | set_tol_acc (decimal_t acc) |
| Set acceleration tolerance for goal region.
|
|
void | set_tol_yaw (decimal_t yaw) |
| Set acceleration tolerance for goal region.
|
|
void | set_w (decimal_t w) |
| set weight for cost in time, usually no need to change
|
|
void | set_wyaw (decimal_t wyaw) |
| set weight for cost in yaw, usually no need to change
|
|
virtual void | set_potential_weight (decimal_t w) |
| set weight for cost in time, usually no need to change
|
|
virtual void | set_gradient_weight (decimal_t w) |
| set weight for cost in time, usually no need to change
|
|
virtual void | set_potential_map (const std::vector< int8_t > &map) |
| set weight for cost in time, usually no need to change
|
|
virtual void | set_gradient_map (const vec_E< Vecf< Dim >> &map) |
| set weight for cost in time, usually no need to change
|
|
void | set_t_max (int t) |
| Set max time.
|
|
bool | set_goal (const Waypoint< Dim > &state) |
| Set goal state.
|
|
void | set_search_region (const std::vector< bool > &search_region) |
| Set valid search region (tunnel constraint)
|
|
void | set_heur_ignore_dynamics (bool ignore) |
| Set heur_ignore_dynamics.
|
|
virtual void | info () |
| Print out params.
|
|
virtual bool | is_free (const Vecf< Dim > &pt) const |
| Check if a point is in free space.
|
|
virtual bool | is_free (const Primitive< Dim > &pr) const |
| Check if a primitive is in free space.
|
|
virtual decimal_t | calculate_intrinsic_cost (const Primitive< Dim > &pr) const |
|
decimal_t | get_dt () const |
| Retrieve dt.
|
|
virtual void | get_succ (const Waypoint< Dim > &curr, vec_E< Waypoint< Dim >> &succ, std::vector< decimal_t > &succ_cost, std::vector< int > &action_idx) const |
| Get successor. More...
|
|
std::vector< bool > | get_search_region () const |
| Get the valid region.
|
|