Go to the documentation of this file. 1 #ifndef ED_SENSOR_INTEGRATION_TOOLS_SNAPSHOT_H_
2 #define ED_SENSOR_INTEGRATION_TOOLS_SNAPSHOT_H_
39 const char *
what ()
const throw () {
79 if (r.
value(
"rgbd_filename", rgbd_filename))
124 std::string message =
"loadWorldModel: Model '" + model_name +
125 "' could not be loaded. ModelLoader error: " +
error.str();
132 world_model_ptr->update(
req);
134 return world_model_ptr;
188 bool file_found =
false;
235 #endif // ED_SENSOR_INTEGRATION_TOOLS_SNAPSHOT_H_
bool loadSnapshot(tue::filesystem::Path filename)
loadSnapshot, load snapshot data and extend the snapshots list.
The Snapshot struct, of a camera image taken at a single point in time.
bool value(const std::string &name, T &value, const RequiredOrOptional=REQUIRED) const
std::string extension() const
bool deserialize(tue::serialization::InputArchive &a, Image &image)
bool nextPath(Path &path)
SnapshotCrawler(tue::filesystem::Path path)
tue::filesystem::Crawler crawler
ed::WorldModelPtr loadWorldModel(const std::string &model_name)
std::vector< Snapshot > snapshots
void setRootPath(const Path &root_path)
ModelNotFoundException(const std::string model_name, const std::string message)
void next()
next, proceed to next index of the snapshot list. If index is out of bounds, try to load a new snapsh...
bool deserialize(ed::io::Reader &r, ConvexHull &ch)
bool isRegularFile() const
bool create(const tue::config::DataConstPointer &data, const UUID &id_opt, const UUID &parent_id, UpdateRequest &req, std::stringstream &error, const std::string &model_path="", const geo::Pose3D &pose_offset=geo::Pose3D::identity())
shared_ptr< WorldModel > WorldModelPtr
bool readImage(const std::string &filename, rgbd::ImagePtr &image, geo::Pose3D &sensor_pose)
bool loadNewSnapshot()
loadNewSnapshot, find next file to load snapshot from and load snapshot.
const char * what() const
DataPointer fromFile(const char *filename, const ResolveConfig &resolve_config=ResolveConfig::defaultConfig())
const std::string & string() const
Snapshot & getSnapshot(unsigned int i)
Path join(const Path &path) const
const char * what() const