27 track =
TrackPtr(
new Track(object->type, object->observedId));
31 for (
size_t i = 0; i < setIdx; i++) {
36 track->objects.push_back(
object);
40 for (
size_t i = track->objects.size(); i <= setIdx; i++) {
48 track->calculateWeight();
58 if (track->type == type && track->observedId == observedId) {
67 std::vector<ObjectSetPtr> ret;
69 for (
size_t i = 0; i <
tracks[0]->objects.size(); i++) {
72 if (track->objects[i]) {
73 set->insert(track->objects[i]);
84 for (
TrackPtr& eraseTrack : eraseTracks) {
85 for (
size_t i = 0; i <
tracks.size(); i++) {
87 if (eraseTrack == track) {
94 tracks.push_back(newTrack);
TrackPtr getTrackByTypeAndId(std::string type, std::string observedId)
std::vector< ObjectSetPtr > toObjectSetVector()
std::vector< TrackPtr > tracks
boost::shared_ptr< ObjectSet > ObjectSetPtr
Tracks(std::vector< ObjectSetPtr > sets)
void replace(std::vector< TrackPtr > tracks, TrackPtr newTrack)
boost::shared_ptr< Track > TrackPtr
this namespace contains all generally usable classes.
boost::shared_ptr< Object > ObjectPtr