$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::scp {
35 
36 extern const char* Start;
37 extern const char* Stop;
38 extern const char* Pause;
39 extern const char* Restart;
40 extern const char* Apply;
41 extern const char* Config;
42 extern const char* QueryInit;
43 extern const char* AckInit;
44 extern const char* InitOperation;
45 
46 struct ParamServerConfig : public ScpMessage {
47  std::string sync_source = "RDB";
48  bool no_image_generator = false;
49  std::string to_scp() const override;
50 };
51 
52 struct ScenarioConfig : public ScpMessage {
53  std::string filename;
54  std::string to_scp() const override;
55 };
56 
57 struct CameraPosition : public ScpMessage {
58  std::string tethered_to_player;
59  std::string look_to_player;
60 
61  std::string to_scp() const override;
62 };
63 
65  int port;
66  int player_id;
67  int sensor_id;
68  std::string to_scp() const override;
69 };
70 
72  std::string name;
73  std::string to_scp() const override;
74 };
75 
76 struct LabelVehicle : public ScpMessage {
77  std::string tethered_to_player;
78  std::string text;
79  std::string color = "0xFF0000";
80 
85  double dz_m = 2.0;
86 
87  std::string to_scp() const override;
88 };
89 
90 struct RecordDat : public ScpMessage {
91  boost::filesystem::path datfile_path;
92  std::string to_scp() const override;
93 };
94 
95 struct QueryScenario : public ScpMessage {
96  std::string scenario;
97  std::string to_scp() const override;
98 };
99 
100 } // namespace vtd::scp
Definition: scp_transceiver.hpp:59
Definition: scp_messages.hpp:57
Definition: scp_messages.hpp:71
Definition: scp_messages.hpp:76
double dz_m
Definition: scp_messages.hpp:85
Definition: scp_messages.hpp:46
Definition: scp_messages.hpp:95
Definition: scp_messages.hpp:90
Definition: scp_messages.hpp:52
Definition: scp_messages.hpp:64