TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
model_parser.h
Go to the documentation of this file.
1#ifndef TINYURDF_MODELPARSER_H
2#define TINYURDF_MODELPARSER_H
3
4// Copyright 2025 Wissem CHIHA
5
6#include <loguru/loguru.hpp>
7#include <tinyxml2/tinyxml2.h>
8
9#include "parser_base.h"
10#include "joint_parser.h"
11#include "link_parser.h"
12#include "model.h"
13
14class ModelParser : public ParserBase<Model>{
15public:
17 void parse(const tinyxml2::XMLElement* xml) override;
18 std::shared_ptr<Model> get() override;
19 void print(std::ostream& os) override;
20 bool isA(const char* name) override;
21 bool empty() const override;
22 void clear() override;
23 const char* getTypename() override;
24private:
25 std::shared_ptr<Model> p_;
26};
27#endif // TINYURDF_MODEL_PARSER_H
Definition model_parser.h:14
const char * getTypename() override
Definition model_parser.cc:62
bool isA(const char *name) override
Definition model_parser.cc:47
void parse(const tinyxml2::XMLElement *xml) override
Definition model_parser.cc:8
void print(std::ostream &os) override
Definition model_parser.cc:40
void clear() override
Definition model_parser.cc:57
ModelParser()
Definition model_parser.cc:3
std::shared_ptr< Model > get() override
Definition model_parser.cc:35
bool empty() const override
Definition model_parser.cc:52
Definition parser_base.h:16