ZJU-FAST-Lab / ego-planner

GNU General Public License v3.0
1.29k stars 268 forks source link

Min and Max was messed up? #55

Closed Lr-2002 closed 1 year ago

Lr-2002 commented 1 year ago

https://sourcegraph.com/github.com/ZJU-FAST-Lab/ego-planner@c50669a58ae51e6e2a9c35dc614b153b9b4c8c75/-/blob/src/planner/plan_env/src/grid_map.cpp?L341:22&popover=pinned#tab=references this is the problem source ,and the code is


double min_x = mp_.map_max_boundary_(0);
double min_y = mp_.map_max_boundary_(1);
double min_z = mp_.map_max_boundary_(2);
 
double max_x = mp_.map_min_boundary_(0);
double max_y = mp_.map_min_boundary_(1);
double max_z = mp_.map_min_boundary_(2);

Maybe the min and max was messed?

bigsuperZZZX commented 1 year ago

Not messed. Here is the initialization of min and max.