TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
visual_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_VISUAL_PARSER_H_
2#define INCLUDE_TINYURDF_VISUAL_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <memory>
7
8#include "visual.h"
9#include "parser_base.h"
10#include "geometry_base.h"
11#include "geometry_parser.h"
12#include "pose_parser.h"
13#include "material_parser.h"
14#include "material.h"
15#include "box.h"
16#include "sphere.h"
17#include "mesh.h"
18#include "cylinder.h"
19#include "utils.h"
20
21class VisualParser : public ParserBase<Visual>{
22public:
24 void print(std::ostream& os) override;
25 bool empty() const override;
26 void clear() override;
27 const char* getTypename() override;
28 bool isA(const char* name) override;
29 void parse(const tinyxml2::XMLElement* xml) override;
30 std::shared_ptr<Visual> get()override;
32private:
33 std::shared_ptr<Visual> p_;
34};
35#endif // INCLUDE_TINYURDF_VISUAL_PARSER_H_
36
Definition parser_base.h:16
Definition visual_parser.h:21
VisualParser()
Definition visual_parser.cc:4
std::shared_ptr< Visual > get() override
Definition visual_parser.cc:72
void clear() override
Definition visual_parser.cc:24
bool empty() const override
Definition visual_parser.cc:18
bool isA(const char *name) override
Definition visual_parser.cc:39
void parse(const tinyxml2::XMLElement *xml) override
Definition visual_parser.cc:45
void print(std::ostream &os) override
Definition visual_parser.cc:10
const char * getTypename() override
Definition visual_parser.cc:30
~VisualParser()
Definition visual_parser.cc:36