Apollo  v5.5.0
Open source self driving car software
track_object.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 
18 #include <memory>
19 #include <vector>
20 
23 
24 namespace apollo {
25 namespace perception {
26 namespace camera {
27 struct TrackObject {
29  double timestamp;
32 };
33 typedef std::shared_ptr<TrackObject> TrackObjectPtr;
34 typedef std::vector<TrackObjectPtr> TrackObjectPtrs;
35 // struct TrackFeature {
36 // TrackFeature(int frame_id, std::shared_ptr<base::Blob<float>> blob);
37 // int frame_id_;
38 // std::shared_ptr<base::Blob<float>> blob_;
39 // };
40 // class TrackObjectPool {
41 // public:
42 // void Init(size_t capacity);
43 // void NewObject(TrackObjectPtr *ptr);
44 // void NewObject(TrackObjectPtrs *ptr, int batch_size);
45 // void FreeObject(TrackObjectPtr ptr);
46 // void FreeObject(const TrackObjectPtrs &ptr);
47 // private:
48 // std::queue<TrackObjectPtr> data_;
49 // size_t capacity_;
50 // };
51 
52 } // namespace camera
53 } // namespace perception
54 } // namespace apollo
PatchIndicator indicator
Definition: track_object.h:28
Definition: blob.h:72
Definition: track_object.h:27
std::shared_ptr< TrackObject > TrackObjectPtr
Definition: track_object.h:33
std::vector< TrackObjectPtr > TrackObjectPtrs
Definition: track_object.h:34
base::ObjectPtr object
Definition: track_object.h:31
double timestamp
Definition: track_object.h:29
base::BBox2DF projected_box
Definition: track_object.h:30
std::shared_ptr< Object > ObjectPtr
Definition: object.h:118