$darkmode
scp_messages.hpp
Go to the documentation of this file.
1 /*
2  * Copyright 2020 Robert Bosch GmbH
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  * SPDX-License-Identifier: Apache-2.0
17  */
26 #pragma once
27 
28 #include <string> // for string
29 
30 #include <boost/filesystem/path.hpp> // for path
31 
32 #include "scp_transceiver.hpp" // for ScpMessage
33 
34 namespace vtd {
35 namespace scp {
36 
37 extern const char* Start;
38 extern const char* Stop;
39 extern const char* Pause;
40 extern const char* Restart;
41 extern const char* Apply;
42 extern const char* Config;
43 extern const char* QueryInit;
44 extern const char* AckInit;
45 extern const char* InitOperation;
46 
47 struct ParamServerConfig : public ScpMessage {
48  std::string sync_source = "RDB";
49  bool no_image_generator = false;
50  std::string to_scp() const override;
51 };
52 
53 struct ScenarioConfig : public ScpMessage {
54  std::string filename;
55  std::string to_scp() const override;
56 };
57 
58 struct CameraPosition : public ScpMessage {
59  std::string tethered_to_player;
60  std::string look_to_player;
61 
62  std::string to_scp() const override;
63 };
64 
66  int port;
67  int player_id;
68  int sensor_id;
69  std::string to_scp() const override;
70 };
71 
73  std::string name;
74  std::string to_scp() const override;
75 };
76 
77 struct LabelVehicle : public ScpMessage {
78  std::string tethered_to_player;
79  std::string text;
80  std::string color = "0xFF0000";
81 
86  double dz_m = 2.0;
87 
88  std::string to_scp() const override;
89 };
90 
91 struct RecordDat : public ScpMessage {
92  boost::filesystem::path datfile_path;
93  std::string to_scp() const override;
94 };
95 
96 struct QueryScenario : public ScpMessage {
97  std::string scenario;
98  std::string to_scp() const override;
99 };
100 
101 } // namespace scp
102 } // namespace vtd
Definition: scp_transceiver.hpp:59
Definition: scp_messages.hpp:58
Definition: scp_messages.hpp:72
Definition: scp_messages.hpp:77
double dz_m
Definition: scp_messages.hpp:86
Definition: scp_messages.hpp:47
Definition: scp_messages.hpp:96
Definition: scp_messages.hpp:91
Definition: scp_messages.hpp:53
Definition: scp_messages.hpp:65