Autoware.Auto
tracker_types.hpp
Go to the documentation of this file.
1 // Copyright 2021 Apex.AI, Inc.
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14 //
15 // Co-developed by Tier IV, Inc. and Apex.AI, Inc.
16 
17 #ifndef TRACKING__TRACKER_TYPES_HPP_
18 #define TRACKING__TRACKER_TYPES_HPP_
19 
21 
22 #include <limits>
23 #include <unordered_set>
24 #include <vector>
25 
26 namespace autoware
27 {
28 namespace perception
29 {
30 namespace tracking
31 {
32 
34 constexpr uint16_t MAX_NUM_TRACKS = 256U;
35 
37 constexpr uint16_t NUM_OBJ_POSE_DIM = 2U;
38 
40 struct TRACKING_PUBLIC AssociatorResult
41 {
42  static constexpr std::size_t UNASSIGNED = std::numeric_limits<std::size_t>::max();
46  std::vector<std::size_t> track_assignments;
48  std::unordered_set<std::size_t> unassigned_detection_indices;
50  std::unordered_set<std::size_t> unassigned_track_indices;
52  bool had_errors;
53 };
54 
56 {
61 };
62 
63 } // namespace tracking
64 } // namespace perception
65 } // namespace autoware
66 
67 #endif // TRACKING__TRACKER_TYPES_HPP_
visibility_control.hpp
autoware::perception::tracking::MAX_NUM_TRACKS
constexpr uint16_t MAX_NUM_TRACKS
Maximum number of tracks possible in every timestep.
Definition: tracker_types.hpp:34
autoware
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24
autoware::perception::tracking::AssociatorResult
Struct to store results after the assignment is done.
Definition: tracker_types.hpp:40
autoware::perception::tracking::NUM_OBJ_POSE_DIM
constexpr uint16_t NUM_OBJ_POSE_DIM
Number of dimensions needed to represent object position for tracking (x and y)
Definition: tracker_types.hpp:37
autoware::perception::tracking::AssociatorResult::had_errors
bool had_errors
Indicates if there were errors in the data during association.
Definition: tracker_types.hpp:52
autoware::perception::tracking::AssociatorResult::track_assignments
std::vector< std::size_t > track_assignments
This vector stores the detection index associated with each track idx. So, it should have Associator:...
Definition: tracker_types.hpp:46
autoware::perception::tracking::AssociatorResult::unassigned_track_indices
std::unordered_set< std::size_t > unassigned_track_indices
Indices of tracks that are not associated to any detections.
Definition: tracker_types.hpp:50
autoware::perception::tracking::TrackCreationPolicy::LidarClusterIfVision
@ LidarClusterIfVision
Create tracks from unassociated lidar clusters only if they have associated vision detections.
autoware::perception::tracking::TrackCreationPolicy
TrackCreationPolicy
Definition: tracker_types.hpp:55
autoware::perception::tracking::TrackCreationPolicy::LidarClusterOnly
@ LidarClusterOnly
Create tracks from every unassociated lidar cluster.
autoware::perception::tracking::AssociatorResult::unassigned_detection_indices
std::unordered_set< std::size_t > unassigned_detection_indices
Indices of detections that are not associated to any tracks.
Definition: tracker_types.hpp:48