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

Method getAssociationResult

tracking/src/tracker.cpp:214–223  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

212}
213
214void
215Tracker::getAssociationResult(opt_msgs::Association::Ptr& msg)
216{
217 msg->detection_ids.resize(associations_.size());
218 msg->track_ids.resize(associations_.size());
219 for(int i=0; i<associations_.size(); i++) {
220 msg->detection_ids[i] = i;
221 msg->track_ids[i] = associations_[i] == NULL ? -1 : associations_[i]->getId();
222 }
223}
224
225void
226Tracker::getAliveIDs (opt_msgs::IDArray::Ptr& msg)

Callers 1

detection_cbFunction · 0.80

Calls 3

resizeMethod · 0.45
sizeMethod · 0.45
getIdMethod · 0.45

Tested by

no test coverage detected