提交 477cfa6e 编写于 作者: A Aaron Xiao 提交者: siyangy

Dreamview: Migrate to get sim_map from global map_dir. (#918)

上级 76832673
......@@ -18,9 +18,6 @@
DEFINE_string(dreamview_module_name, "dreamview", "dreamview module name");
DEFINE_string(dreamview_map, "modules/map/data/sim_map.txt",
"File path for the map file to be rendered in frontend.");
DEFINE_string(static_file_dir, "modules/dreamview/frontend/dist",
"The path to the dreamview distribution directory. The default "
"value points to built-in version from the Apollo project.");
......
......@@ -19,8 +19,6 @@
#include "gflags/gflags.h"
DECLARE_string(dreamview_map);
DECLARE_string(dreamview_module_name);
DECLARE_string(static_file_dir);
......
......@@ -20,6 +20,7 @@
#include "modules/common/adapters/proto/adapter_config.pb.h"
#include "modules/common/configs/vehicle_config_helper.h"
#include "modules/common/time/time.h"
#include "modules/map/hdmap/hdmap_util.h"
#include "modules/dreamview/backend/common/dreamview_gflags.h"
......@@ -52,7 +53,7 @@ Status Dreamview::Init() {
websocket_.reset(new WebSocketHandler());
server_->addWebSocketHandler("/websocket", *websocket_);
map_service_.reset(new MapService(FLAGS_dreamview_map));
map_service_.reset(new MapService(apollo::hdmap::SimMapFile()));
sim_world_updater_.reset(new SimulationWorldUpdater(
websocket_.get(), map_service_.get(), FLAGS_routing_from_file));
sim_control_.reset(new SimControl());
......
--adapter_config_path=modules/dreamview/conf/adapter.conf
--dreamview_map=modules/map/data/sunnyvale_office.sim_map.bin
--adapter_config_path=modules/dreamview/conf/adapter.conf
\ No newline at end of file
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册