apollo icon indicating copy to clipboard operation
apollo copied to clipboard

how to run qp_spile_path_optimizer during em_planner execution?

Open MoonSeongJoo opened this issue 8 years ago • 4 comments

Hello. In the reviewing em_planner.cc, there are many tasks in the RegisterTasks(). But, this function did not take qp_spline_path_optimizer. where is it? and how could run this QpSplinePathOptimizer in running time? After path decider module execution, this path decision data send to qp_spline_path_optimizer (Ignore/stop/nudge). but qp_spline_path_optimizer is missing in the run time. please support this question. thanks.

void EMPlanner::RegisterTasks() { task_factory_.Register(DP_POLY_PATH_OPTIMIZER, []() -> Task* { return new DpPolyPathOptimizer(); }); task_factory_.Register(PATH_DECIDER, []() -> Task* { return new PathDecider(); }); task_factory_.Register(DP_ST_SPEED_OPTIMIZER, []() -> Task* { return new DpStSpeedOptimizer(); }); task_factory_.Register(SPEED_DECIDER, []() -> Task* { return new SpeedDecider(); }); task_factory_.Register(QP_SPLINE_ST_SPEED_OPTIMIZER, []() -> Task* { return new QpSplineStSpeedOptimizer(); }); task_factory_.Register(POLY_ST_SPEED_OPTIMIZER, []() -> Task* { return new PolyStSpeedOptimizer(); }); }

MoonSeongJoo avatar Jul 09 '18 08:07 MoonSeongJoo

It seems we only implement QpSplinePathOptimizer, but not invoke in running time for less elapsed time. If I'm not right ,please correct me @jiangtao and liangliang

douqian avatar Jul 09 '18 13:07 douqian

@jiangtao Hello. In the reviewing em_planner.cc, there are many tasks in the RegisterTasks(). But, this function did not take qp_spline_path_optimizer. where is it? and how could run this QpSplinePathOptimizer in running time? After path decider module execution, this path decision data send to qp_spline_path_optimizer (Ignore/stop/nudge). but qp_spline_path_optimizer is missing in the run time. please support this question. thanks. void EMPlanner::RegisterTasks() { task_factory_.Register(DP_POLY_PATH_OPTIMIZER, -> Task* { return new DpPolyPathOptimizer(); }); task_factory_.Register(PATH_DECIDER, -> Task* { return new PathDecider(); }); task_factory_.Register(DP_ST_SPEED_OPTIMIZER, -> Task* { return new DpStSpeedOptimizer(); }); task_factory_.Register(SPEED_DECIDER, -> Task* { return new SpeedDecider(); }); task_factory_.Register(QP_SPLINE_ST_SPEED_OPTIMIZER, -> Task* { return new QpSplineStSpeedOptimizer(); }); task_factory_.Register(POLY_ST_SPEED_OPTIMIZER, -> Task* { return new PolyStSpeedOptimizer(); }); }

MoonSeongJoo avatar Jul 10 '18 00:07 MoonSeongJoo

Currently we are not using qp_spline_path_optimizer so that you don't see it in the config file.

lianglia-apollo avatar Jul 10 '18 06:07 lianglia-apollo

Closing the issue due to no communication. Feel free to re-open the issue if there is follow up questions.

Zhenni17 avatar Jul 18 '18 23:07 Zhenni17