Apollo  6.0
Open source self driving car software
play_param.h
Go to the documentation of this file.
1 /******************************************************************************
2  * Copyright 2018 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 #ifndef CYBER_TOOLS_CYBER_RECORDER_PLAYER_PLAY_PARAM_H_
18 #define CYBER_TOOLS_CYBER_RECORDER_PLAYER_PLAY_PARAM_H_
19 
20 #include <cstdint>
21 #include <limits>
22 #include <set>
23 #include <string>
24 
25 namespace apollo {
26 namespace cyber {
27 namespace record {
28 
29 struct PlayParam {
30  bool is_play_all_channels = false;
31  bool is_loop_playback = false;
32  double play_rate = 1.0;
33  uint64_t begin_time_ns = 0;
34  uint64_t end_time_ns = std::numeric_limits<uint64_t>::max();
35  uint64_t start_time_s = 0;
36  uint64_t delay_time_s = 0;
37  uint32_t preload_time_s = 3;
38  std::set<std::string> files_to_play;
39  std::set<std::string> channels_to_play;
40  std::set<std::string> black_channels;
41 };
42 
43 } // namespace record
44 } // namespace cyber
45 } // namespace apollo
46 
47 #endif // CYBER_TOOLS_CYBER_RECORDER_PLAYER_PLAY_PARAM_H_
std::set< std::string > files_to_play
Definition: play_param.h:38
std::set< std::string > channels_to_play
Definition: play_param.h:39
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
std::set< std::string > black_channels
Definition: play_param.h:40
uint64_t begin_time_ns
Definition: play_param.h:33
double play_rate
Definition: play_param.h:32
uint64_t delay_time_s
Definition: play_param.h:36
bool is_loop_playback
Definition: play_param.h:31
Definition: play_param.h:29
uint32_t preload_time_s
Definition: play_param.h:37
uint64_t end_time_ns
Definition: play_param.h:34
bool is_play_all_channels
Definition: play_param.h:30
uint64_t start_time_s
Definition: play_param.h:35