Go to the documentation of this file.
17 #ifndef TRACKING__OBJECTS_WITH_ASSOCIATIONS_HPP_
18 #define TRACKING__OBJECTS_WITH_ASSOCIATIONS_HPP_
21 #include <autoware_auto_perception_msgs/msg/classified_roi_array.hpp>
22 #include <autoware_auto_perception_msgs/msg/detected_objects.hpp>
23 #include <autoware_auto_perception_msgs/msg/tracked_objects.hpp>
39 std::size_t
get_size(
const MsgT & msg);
44 return msg.objects.size();
84 : m_objects{objects}, m_associations{associations}
87 throw std::runtime_error(
"Objects number must match the associations number");
95 : m_objects{std::move(objects)},
98 const MsgT &
objects() const noexcept {
return m_objects;}
102 return m_associations;
120 #endif // TRACKING__OBJECTS_WITH_ASSOCIATIONS_HPP_
std::vector< Association > Associations
Definition: objects_with_associations.hpp:69
Matched
This enum holds various values that signify a match to a certain modality.
Definition: objects_with_associations.hpp:51
std::size_t get_size(const MsgT &msg)
@ kNothing
Nothing was matched.
std::size_t match_index
Definition: objects_with_associations.hpp:66
This class describes an associated object array of a certain message type.
Definition: objects_with_associations.hpp:80
@ kOtherDetection
Matched another detection.
@ kExistingTrack
Matched an existing track.
This file defines the lanelet2_map_provider_node class.
Definition: quick_sort.hpp:24
Associated(const MsgT &objects)
Definition: objects_with_associations.hpp:91
const Associations & associations() const noexcept
Definition: objects_with_associations.hpp:100
const MsgT & objects() const noexcept
Definition: objects_with_associations.hpp:98
Associations & associations() noexcept
Definition: objects_with_associations.hpp:104
Matched matched
Definition: objects_with_associations.hpp:65
Associated(const MsgT &objects, const Associations &associations)
Definition: objects_with_associations.hpp:83
Associated(MsgT &&objects)
Definition: objects_with_associations.hpp:94
A struct that represents an association. It holds an enum that indicates the type of a match and an i...
Definition: objects_with_associations.hpp:63
@ kNewTrack
Matched a new track.
autoware_auto_perception_msgs::msg::DetectedObjects DetectedObjects
Definition: euclidean_cluster_node.cpp:39