55 bool Init(
const std::string& config_dir,
const std::string& name,
56 const std::shared_ptr<DependencyInjector>& injector)
override;
67 void GenerateTrajectoryThread();
70 const std::vector<double>& end_pose,
74 bool IsVehicleStopDueToFallBack(
const bool is_on_fallback,
81 void ReuseLastFrameResult(
const Frame* last_frame,
84 void ReuseLastFrameDebug(
const Frame* last_frame);
87 double straight_trajectory_length_ = 0.0;
88 bool thread_init_flag_ =
false;
90 std::unique_ptr<OpenSpaceTrajectoryOptimizer>
91 open_space_trajectory_optimizer_;
93 size_t optimizer_thread_counter = 0;
97 std::future<void> task_future_;
98 std::atomic<bool> is_generation_thread_stop_{
false};
99 std::atomic<bool> trajectory_updated_{
false};
100 std::atomic<bool> data_ready_{
false};
101 std::atomic<bool> trajectory_error_{
false};
102 std::atomic<bool> trajectory_skipped_{
false};
103 std::mutex open_space_mutex_;
104 bool is_planned_ =
false;