Go to the documentation of this file. 1 #ifndef ED_MODELS_SHAPE_LOADER_PRIVATE_H_
2 #define ED_MODELS_SHAPE_LOADER_PRIVATE_H_
std::string parseURI(const std::string &uri, ModelOrFile &uri_type)
void createPolygon(geo::Shape &shape, const std::vector< geo::Vec2 > &points, double height, std::stringstream &error, bool create_bottom)
createPolygon create polygon mesh from points
ModelOrFile
The ModelOrFile enum This is used to determine the URI type in SDF.
geo::ShapePtr loadShape(const std::string &model_path, tue::config::Reader cfg, std::map< std::string, geo::ShapePtr > &shape_cache, std::stringstream &error)
loadShape load the shape of a model.
std::vector< std::string > split(const std::string &strToSplit, char delimeter)
split Implementation by using delimiter as a character. Multiple delimeters are removed.
bool readPose(tue::config::Reader &cfg, geo::Pose3D &pose, tue::config::RequiredOrOptional pos_req, tue::config::RequiredOrOptional rot_req)
readPose read pose into Pose3D. Both ED yaml and SDF. Also reads pos(position) of SDF.
geo::ShapePtr getHeightMapShape(cv::Mat &image_orig, const geo::Vec3 &pos, const geo::Vec3 &size, const bool inverted, std::stringstream &error)
getHeightMapShape convert grayscale image in a heigtmap mesh