TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
geometry_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_GEOMETRY_GEOMETRY_PARSER_H_
2#define INCLUDE_TINYURDF_GEOMETRY_GEOMETRY_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <memory>
7#include <cstring>
8
9#include "geometry_base.h"
10#include "parser_base.h"
11#include "box_parser.h"
12#include "sphere_parser.h"
13#include "mesh_parser.h"
14#include "cylinder_parser.h"
15#include "utils.h"
16
35class GeometryParser : public ParserBase<GeometryBase> {
36public:
38 void parse(const tinyxml2::XMLElement* xml) override;
39 const char* getTypename() override;
40 bool empty() const override;
41 void clear() override;
42 bool isA(const char* name) override;
43 void print(std::ostream& os) override;
44 std::shared_ptr<GeometryBase> get() override;
46
47private:
48 std::shared_ptr<GeometryBase> p_;
49};
50#endif // INCLUDE_TINYURDF_GEOMETRY_GEOMETRY_PARSER_H_
Base parser for geometry shapes, parameterized with a geometry base abstract object....
Definition geometry_parser.h:35
~GeometryParser()
Definition geometry_parser.cc:88
void parse(const tinyxml2::XMLElement *xml) override
Definition geometry_parser.cc:6
void clear() override
Definition geometry_parser.cc:66
bool empty() const override
Definition geometry_parser.cc:62
GeometryParser()
Definition geometry_parser.cc:4
bool isA(const char *name) override
Definition geometry_parser.cc:70
const char * getTypename() override
Definition geometry_parser.cc:58
void print(std::ostream &os) override
Definition geometry_parser.cc:74
std::shared_ptr< GeometryBase > get() override
Definition geometry_parser.cc:84
Definition parser_base.h:16