TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
mesh_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_GEOMETRY_MESH_PARSER_H_
2#define INCLUDE_TINYURDF_GEOMETRY_MESH_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <memory>
7#include <string>
8#include "geometry_base.h"
9#include "parser_base.h"
10#include "utils.h"
11#include "mesh.h"
12
17class MeshParser : public ParserBase<Mesh> {
18public:
19 MeshParser();
20 void parse(const tinyxml2::XMLElement* xml) override;
21 bool isA(const char* name) override;
22 const char* getTypename() override;
23 void print(std::ostream& os) override;
24 bool empty() const override;
25 void clear() override;
26 std::shared_ptr<Mesh> get() override;
27 ~MeshParser() override;
28 private:
29 std::shared_ptr<Mesh> p_;
30};
31
32#endif // INCLUDE_TINYURDF_GEOMETRY_MESH_PARSER_H_
Parser for Mesh geometry, inherits from ParserBase<Mesh> and provides the functionality to parse the ...
Definition mesh_parser.h:17
bool isA(const char *name) override
Definition mesh_parser.cc:31
const char * getTypename() override
Definition mesh_parser.cc:35
MeshParser()
Definition mesh_parser.cc:3
void print(std::ostream &os) override
Definition mesh_parser.cc:39
std::shared_ptr< Mesh > get() override
Definition mesh_parser.cc:53
void parse(const tinyxml2::XMLElement *xml) override
Definition mesh_parser.cc:7
void clear() override
Definition mesh_parser.cc:49
bool empty() const override
Definition mesh_parser.cc:45
~MeshParser() override
Definition parser_base.h:16