Apollo  6.0
Open source self driving car software
object_pool_types.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 #pragma once
17 
22 
23 namespace apollo {
24 namespace perception {
25 namespace base {
26 
28  void operator()(Object* object) const { object->Reset(); }
29 };
30 
31 template <typename T>
33  void operator()(AttributePointCloud<Point<T>>* cloud) const {
34  cloud->clear();
35  }
36 };
37 
39  void operator()(Frame* frame) const { frame->Reset(); }
40 };
41 
42 static const size_t kObjectPoolSize = 10000;
43 static const size_t kPointCloudPoolSize = 1000;
44 static const size_t kFramePoolSize = 100;
45 
46 using ObjectPool =
48 using PointFCloudPool =
51 using PointDCloudPool =
55 
56 } // namespace base
57 } // namespace perception
58 } // namespace apollo
Definition: frame.h:32
Definition: object_pool_types.h:27
Definition: object_pool_types.h:32
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
Definition: point.h:28
void operator()(AttributePointCloud< Point< T >> *cloud) const
Definition: object_pool_types.h:33
Definition: object.h:34
void operator()(Frame *frame) const
Definition: object_pool_types.h:39
Definition: concurrent_object_pool.h:43
void Reset()
Definition: frame.h:37
Definition: object_pool_types.h:38
void operator()(Object *object) const
Definition: object_pool_types.h:28