Apollo 11.0
自动驾驶开放平台
trans_tools.h
浏览该文件的文档.
1/******************************************************************************
2 * Copyright 2020 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 <cmath>
20#include <memory>
21#include <string>
22#include <thread>
23#include <vector>
24
26
27namespace apollo {
28namespace v2x {
29namespace ft {
30
31base::Object Pb2Object(const PerceptionObstacle &obstacle,
32 const std::string &frame_id);
33void Pb2Object(const PerceptionObstacle &obstacle, base::Object *object,
34 const std::string &frame_id, double timestamp_object = 0.0);
35
36void V2xPb2Object(const V2XObstacle &obstacle, base::Object *object,
37 const std::string &frame_id, double timestamp_object);
38
39void CarstatusPb2Object(const LocalizationEstimate &carstatus,
40 base::Object *object, const std::string &frame_id);
41
42double Pbs2Objects(const PerceptionObstacles &obstacles,
43 std::vector<base::Object> *objects,
44 const std::string &frame_id);
45
46double V2xPbs2Objects(const V2XObstacles &obstacles,
47 std::vector<base::Object> *objects,
48 const std::string &frame_id);
49
50PerceptionObstacle Object2Pb(const base::Object &object);
51void FillObjectPolygonFromBBox3D(PerceptionObstacle *object_ptr);
52void Object2Pb(const base::Object &object, PerceptionObstacle *obstacle);
53
54void Object2V2xPb(const base::Object &object, V2XObstacle *obstacle);
55void Objects2Pbs(const std::vector<base::Object> &objects,
56 std::shared_ptr<PerceptionObstacles> obstacles);
57
58void Objects2V2xPbs(const std::vector<base::Object> &objects,
59 std::shared_ptr<V2XObstacles> obstacles);
60
61} // namespace ft
62} // namespace v2x
63} // namespace apollo
PerceptionObstacle Object2Pb(const base::Object &object)
void Object2V2xPb(const base::Object &object, V2XObstacle *obstacle)
void Objects2V2xPbs(const std::vector< base::Object > &objects, std::shared_ptr< V2XObstacles > obstacles)
void FillObjectPolygonFromBBox3D(PerceptionObstacle *object_ptr)
void V2xPb2Object(const apollo::v2x::V2XObstacle &obstacle, base::Object *object, const std::string &frame_id, double timestamp_object)
double V2xPbs2Objects(const V2XObstacles &obstacles, std::vector< base::Object > *objects, const std::string &frame_id)
void CarstatusPb2Object(const LocalizationEstimate &carstatus, base::Object *object, const std::string &frame_id)
void Objects2Pbs(const std::vector< base::Object > &objects, std::shared_ptr< PerceptionObstacles > obstacles)
double Pbs2Objects(const PerceptionObstacles &obstacles, std::vector< base::Object > *objects, const std::string &frame_id)
void Pb2Object(const PerceptionObstacle &obstacle, base::Object *object, const std::string &frame_id, double timestamp_object)
class register implement
Definition arena_queue.h:37