Go to the documentation of this file. 1 #ifndef ED_MODEL_LOADER_H_
2 #define ED_MODEL_LOADER_H_
75 const UUID& id_override,
const boost::shared_ptr<const geo::Pose3D> pose_override,
tue::config::DataConstPointer loadModelData(std::string type, std::vector< std::string > &types, std::stringstream &error, const bool allow_sdf=false)
loadModelData load data of model of type 'type'
bool createSDF(const tue::config::DataConstPointer &data, const UUID &parent_id, const geo::Pose3D &parent_pose, const UUID &id_override, const boost::shared_ptr< const geo::Pose3D > pose_override, UpdateRequest &req, std::stringstream &error)
createSDF add SDF entity to update_request from config data.
std::vector< std::string > model_paths_
ModelData readModelCache(std::string type) const
readModelCache read the model cache, which contains the data and all types
tue::config::DataConstPointer loadSDFData(std::string uri, std::stringstream &error)
loadSDFData load data of SDF model of uri 'uri'
bool create(const UUID &id, const std::string &type, UpdateRequest &req, std::stringstream &error, const bool allow_sdf=false)
create add entity to update_request with id 'id' of the type 'type'. If allow_sdf is true,...
std::map< std::string, ModelData > model_cache_
std::map< std::string, geo::ShapePtr > shape_cache_
LoadType
The LoadType enum indicates whether to load directly from a file or from a model that is part of the ...
std::vector< std::string > ed_model_paths_
std::vector< std::string > file_paths_
std::pair< tue::config::DataConstPointer, std::vector< std::string > > ModelData
bool exists(const std::string &type) const
exists Check of a model of type 'type' exist
std::string getSDFPath(const std::string &uri) const
getSDFPath get file path of SDF model with uri 'uri'
std::string getModelPath(const std::string &type) const
getModelPath get file path of model of type 'type'
bool loadModel(const LoadType load_type, const std::string &source, ed::UpdateRequest &req)
loadModel loads an ED model from file