23 {
24
25 const char* apollo_runtime_path = std::getenv("APOLLO_RUNTIME_PATH");
26 if (apollo_runtime_path != nullptr) {
27 if (std::filesystem::is_directory(
28 std::filesystem::status(apollo_runtime_path))) {
29 std::filesystem::current_path(apollo_runtime_path);
30 }
31 }
32 google::ParseCommandLineFlags(&argc, &argv, true);
33
34 apollo::cyber::GlobalData::Instance()->SetProcessGroup("dreamview_sched");
36
38 const bool init_success = dreamview.
Init().
ok() && dreamview.
Start().
ok();
39 if (!init_success) {
40 AERROR <<
"Failed to initialize dreamview server";
41 return -1;
42 }
44 return 0;
45}
bool ok() const
check whether the return status is OK.
apollo::common::Status Init()
apollo::common::Status Start()
bool Init(const char *binary_name, const std::string &dag_info)