Apollo  6.0
Open source self driving car software
dreamview.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2017 The Apollo Authors. All Rights Reserved.
3  *
4  * Licensed under the Apache License, Version 2.0 (the "License");
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  *****************************************************************************/
16 
17 #pragma once
18 
19 #include <memory>
20 #include <string>
21 
22 #include "CivetServer.h"
23 
24 #include "cyber/cyber.h"
34 #if WITH_TELEOP == 1
36 #endif
37 
42 namespace apollo {
43 namespace dreamview {
44 
45 class Dreamview {
46  public:
47  ~Dreamview();
48 
51  void Stop();
52 
53  private:
54  void TerminateProfilingMode();
55 
56  std::unique_ptr<cyber::Timer> exit_timer_;
57 
58  std::unique_ptr<SimulationWorldUpdater> sim_world_updater_;
59  std::unique_ptr<PointCloudUpdater> point_cloud_updater_;
60  std::unique_ptr<SimControl> sim_control_;
61  std::unique_ptr<CivetServer> server_;
62  std::unique_ptr<WebSocketHandler> websocket_;
63  std::unique_ptr<WebSocketHandler> map_ws_;
64  std::unique_ptr<WebSocketHandler> point_cloud_ws_;
65  std::unique_ptr<WebSocketHandler> camera_ws_;
66  std::unique_ptr<ImageHandler> image_;
67  std::unique_ptr<MapService> map_service_;
68  std::unique_ptr<HMI> hmi_;
69  std::unique_ptr<PerceptionCameraUpdater> perception_camera_updater_;
70 #if WITH_TELEOP == 1
71  std::unique_ptr<TeleopService> teleop_;
72  std::unique_ptr<WebSocketHandler> teleop_ws_;
73 #endif
74 };
75 
76 } // namespace dreamview
77 } // namespace apollo
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
apollo::common::Status Start()
apollo::common::Status Init()
A general class to denote the return status of an API call. It can either be an OK status for success...
Definition: status.h:43
Definition: dreamview.h:45