MCPcopy Create free account
hub / github.com/OpenPTrack/open_ptrack_v2 / init

Method init

tracking/src/track3d.cpp:88–116  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void
89Track3D::init(const Track3D& old_track)
90{
91 double x, y, z;
92 old_track.filter_->getState(x, y, z);
93
94 filter_->init(x, y, z, 10, old_track.velocity_in_motion_term_);
95
96 *tmp_filter_ = *filter_;
97 visibility_ = old_track.visibility_;
98
99 ROS_INFO("%d -> %d", old_track.id_, id_);
100
101 distance_ = old_track.distance_;
102 age_ = old_track.age_;
103
104 detection_source_ = old_track.detection_source_;
105 velocity_in_motion_term_ = old_track.velocity_in_motion_term_;
106 validated_ = validated_ || old_track.validated_;
107 low_confidence_consecutive_frames_ = old_track.low_confidence_consecutive_frames_;
108
109 first_time_detected_ = old_track.first_time_detected_;
110 last_time_detected_ = old_track.last_time_detected_;
111 last_time_detected_with_high_confidence_ = old_track.last_time_detected_with_high_confidence_;
112 last_time_predicted_ = old_track.last_time_predicted_;
113 last_time_predicted_index_ = old_track.last_time_predicted_index_;
114
115 data_association_score_ = old_track.data_association_score_;
116}
117
118void
119Track3D::init(double x, double y, double z, double height, double distance,

Callers 1

Calls 2

getTimeMethod · 0.80
getStateMethod · 0.45

Tested by

no test coverage detected