Apollo
10.0
自动驾驶开放平台
play_param.h
浏览该文件的文档.
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
base_begin_time_ns
= 0;
35
uint64_t
end_time_ns
= std::numeric_limits<uint64_t>::max();
36
double
start_time_s
= 0;
37
uint64_t
delay_time_s
= 0;
38
uint32_t
preload_time_s
= 3;
39
std::set<std::string>
files_to_play
;
40
std::set<std::string>
channels_to_play
;
41
std::set<std::string>
black_channels
;
42
// for dreamview_plus play record;use record_id to check source
43
std::string
record_id
=
""
;
44
};
45
46
}
// namespace record
47
}
// namespace cyber
48
}
// namespace apollo
49
50
#endif
// CYBER_TOOLS_CYBER_RECORDER_PLAYER_PLAY_PARAM_H_
apollo
class register implement
Definition
arena_queue.h:37
apollo::cyber::record::PlayParam
Definition
play_param.h:29
apollo::cyber::record::PlayParam::record_id
std::string record_id
Definition
play_param.h:43
apollo::cyber::record::PlayParam::black_channels
std::set< std::string > black_channels
Definition
play_param.h:41
apollo::cyber::record::PlayParam::end_time_ns
uint64_t end_time_ns
Definition
play_param.h:35
apollo::cyber::record::PlayParam::is_play_all_channels
bool is_play_all_channels
Definition
play_param.h:30
apollo::cyber::record::PlayParam::files_to_play
std::set< std::string > files_to_play
Definition
play_param.h:39
apollo::cyber::record::PlayParam::begin_time_ns
uint64_t begin_time_ns
Definition
play_param.h:33
apollo::cyber::record::PlayParam::preload_time_s
uint32_t preload_time_s
Definition
play_param.h:38
apollo::cyber::record::PlayParam::is_loop_playback
bool is_loop_playback
Definition
play_param.h:31
apollo::cyber::record::PlayParam::delay_time_s
uint64_t delay_time_s
Definition
play_param.h:37
apollo::cyber::record::PlayParam::base_begin_time_ns
uint64_t base_begin_time_ns
Definition
play_param.h:34
apollo::cyber::record::PlayParam::channels_to_play
std::set< std::string > channels_to_play
Definition
play_param.h:40
apollo::cyber::record::PlayParam::play_rate
double play_rate
Definition
play_param.h:32
apollo::cyber::record::PlayParam::start_time_s
double start_time_s
Definition
play_param.h:36
cyber
tools
cyber_recorder
player
play_param.h