26 #include <boost/thread/locks.hpp> 27 #include <boost/thread/shared_mutex.hpp> 29 #include "absl/strings/str_cat.h" 31 #include "modules/routing/proto/default_routing.pb.h" 32 #include "modules/routing/proto/poi.pb.h" 33 #include "modules/task_manager/proto/task_manager.pb.h" 71 bool routing_from_file =
false);
97 bool ConstructRoutingRequest(
98 const nlohmann::json &json,
99 apollo::routing::RoutingRequest *routing_request);
101 bool ValidateCoordinate(
const nlohmann::json &json);
108 nlohmann::json CheckRoutingPoint(
const nlohmann::json &json);
123 bool LoadDefaultRoutings();
131 bool AddDefaultRouting(
const nlohmann::json &json);
133 void RegisterMessageHandlers();
144 apollo::routing::POI poi_;
147 apollo::routing::DefaultRoutings default_routings_;
148 apollo::routing::DefaultRouting *default_routing_;
152 std::string simulation_world_;
153 std::string simulation_world_with_planning_data_;
156 std::string relative_map_string_;
160 boost::shared_mutex mutex_;
162 std::unique_ptr<cyber::Timer> timer_;
164 volatile double last_pushed_adc_timestamp_sec_ = 0.0f;
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
static constexpr double kSimWorldTimeIntervalMs
Definition: simulation_world_updater.h:80
A wrapper around SimulationWorldService and WebSocketHandler to keep pushing SimulationWorld to front...
Definition: simulation_world_updater.h:56
Definition: map_service.h:40
This is a major component of the Simulation backend, which maintains a SimulationWorld object and kee...
Definition: simulation_world_service.h:72
A module that simulates a 'perfect control' algorithm, which assumes an ideal world where the car can...
Definition: sim_control.h:51
void Start()
Starts to push simulation_world to frontend.
Definition: perception_camera_updater.h:38
double LastAdcTimestampSec()
Definition: simulation_world_updater.h:82
SimulationWorldUpdater(WebSocketHandler *websocket, WebSocketHandler *map_ws, WebSocketHandler *camera_ws, SimControl *sim_control, const MapService *map_service, PerceptionCameraUpdater *perception_camera_updater, bool routing_from_file=false)
Constructor with the websocket handler.
The WebSocketHandler, built on top of CivetWebSocketHandler, is a websocket handler that handles diff...
Definition: websocket_handler.h:46