| 212 | } |
| 213 | |
| 214 | void |
| 215 | Tracker::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 | |
| 225 | void |
| 226 | Tracker::getAliveIDs (opt_msgs::IDArray::Ptr& msg) |
no test coverage detected