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

Method init

tracking/src/track_object.cpp:88–120  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

86}
87
88void
89TrackObject::init(const TrackObject& 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 if(old_track.object_name_!="default")
105 object_name_=old_track.object_name_;
106 age_ = old_track.age_;
107
108 detection_source_ = old_track.detection_source_;
109 velocity_in_motion_term_ = old_track.velocity_in_motion_term_;
110 validated_ = validated_ || old_track.validated_;
111 low_confidence_consecutive_frames_ = old_track.low_confidence_consecutive_frames_;
112
113 first_time_detected_ = old_track.first_time_detected_;
114 last_time_detected_ = old_track.last_time_detected_;
115 last_time_detected_with_high_confidence_ = old_track.last_time_detected_with_high_confidence_;
116 last_time_predicted_ = old_track.last_time_predicted_;
117 last_time_predicted_index_ = old_track.last_time_predicted_index_;
118
119 data_association_score_ = old_track.data_association_score_;
120}
121
122
123

Callers 1

Calls 2

getTimeMethod · 0.80
getStateMethod · 0.45

Tested by

no test coverage detected