TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
link_parser.h
Go to the documentation of this file.
1#ifndef TINYURDF_LINK_PARSER_H_
2#define TINYURDF_LINK_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <memory>
7#include <string>
8
9#include <tinyxml2/tinyxml2.h>
10#include <loguru/loguru.hpp>
11
12#include "link.h"
13#include "parser_base.h"
14#include "material_parser.h"
15#include "geometry_parser.h"
16#include "inertia_parser.h"
17#include "visual_parser.h"
18#include "collision_parser.h"
19
55class LinkParser : public ParserBase<Link> {
56public:
57 LinkParser();
58 void parse(const tinyxml2::XMLElement* xml) override;
59 bool isA(const char* name) override;
60 bool empty() const override;
61 void clear() override;
62 void print(std::ostream& os) override;
63 const char* getTypename() override;
64 std::shared_ptr<Link> get() override;
65 ~LinkParser()= default;
66private:
67 std::shared_ptr<Link> p_;
68};
69#endif // TINYURDF_LINKPARSER_H
represents a general description of a link element in a graph-based structure mechanism....
Definition link_parser.h:55
void clear() override
Definition link_parser.cc:49
bool empty() const override
Definition link_parser.cc:44
LinkParser()
Definition link_parser.cc:3
void print(std::ostream &os) override
Definition link_parser.cc:54
std::shared_ptr< Link > get() override
Definition link_parser.cc:66
bool isA(const char *name) override
Definition link_parser.cc:39
~LinkParser()=default
const char * getTypename() override
Definition link_parser.cc:61
void parse(const tinyxml2::XMLElement *xml) override
Definition link_parser.cc:7
Definition parser_base.h:16