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

Method init

tracking/src/track.cpp:88–118  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86 }
87
88 void
89 Track::init(const Track& old_track)
90 {
91 double x, y;
92 old_track.filter_->getState(x, y);
93
94 filter_->init(x, y, 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 z_ = old_track.z_;
102 height_ = old_track.height_;
103 distance_ = old_track.distance_;
104 age_ = old_track.age_;
105
106 detection_source_ = old_track.detection_source_;
107 velocity_in_motion_term_ = old_track.velocity_in_motion_term_;
108 validated_ = validated_ || old_track.validated_;
109 low_confidence_consecutive_frames_ = old_track.low_confidence_consecutive_frames_;
110
111 first_time_detected_ = old_track.first_time_detected_;
112 last_time_detected_ = old_track.last_time_detected_;
113 last_time_detected_with_high_confidence_ = old_track.last_time_detected_with_high_confidence_;
114 last_time_predicted_ = old_track.last_time_predicted_;
115 last_time_predicted_index_ = old_track.last_time_predicted_index_;
116
117 data_association_score_ = old_track.data_association_score_;
118 }
119
120 void
121 Track::init(double x, double y, double z, double height, double distance,

Callers 5

createNewTrackMethod · 0.45
createNewTrackMethod · 0.45
createNewTrackMethod · 0.45
createNewTrackMethod · 0.45

Calls 2

getTimeMethod · 0.80
getStateMethod · 0.45

Tested by

no test coverage detected