Get all properties for a specific frame
| 289 | |
| 290 | // Get all properties for a specific frame |
| 291 | std::string Tracker::PropertiesJSON(int64_t requested_frame) const { |
| 292 | |
| 293 | // Generate JSON properties list |
| 294 | Json::Value root = BasePropertiesJSON(requested_frame); |
| 295 | |
| 296 | // Add trackedObject properties to JSON |
| 297 | Json::Value objects; |
| 298 | for (auto const& trackedObject : trackedObjects){ |
| 299 | Json::Value trackedObjectJSON = trackedObject.second->PropertiesJSON(requested_frame); |
| 300 | // add object json |
| 301 | objects[trackedObject.second->Id()] = trackedObjectJSON; |
| 302 | } |
| 303 | root["objects"] = objects; |
| 304 | |
| 305 | // Return formatted string |
| 306 | return root.toStyledString(); |
| 307 | } |