TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
joint_parser.h
Go to the documentation of this file.
1#ifndef TINYURDF_JOINTPARSER_H
2#define TINYURDF_JOINTPARSER_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 "pose.h"
13#include "joint.h"
14#include "utils.h"
15#include "parser_base.h"
16#include "pose_parser.h"
17#include "property_parser.h"
18
48class JointParser : public ParserBase<Joint>{
49public:
51 void parse(const tinyxml2::XMLElement* xml) override;
52 const char* getTypename() override;
53 std::shared_ptr<Joint> get() override;
54 void clear() override;
55 bool empty() const override;
56 void print(std::ostream& os) override;
57 bool isA(const char* name) override;
59private:
60 std::shared_ptr<Joint> p_;
61 };
62#endif // TINYURDF_JOINTPARSER_H
generalized description of a joint:
Definition joint_parser.h:48
bool empty() const override
Definition joint_parser.cc:154
~JointParser()
Definition joint_parser.cc:170
bool isA(const char *name) override
Definition joint_parser.cc:166
JointParser()
Definition joint_parser.cc:3
const char * getTypename() override
Definition joint_parser.cc:139
void parse(const tinyxml2::XMLElement *xml) override
Definition joint_parser.cc:8
void print(std::ostream &os) override
Definition joint_parser.cc:159
void clear() override
Definition joint_parser.cc:149
std::shared_ptr< Joint > get() override
Definition joint_parser.cc:144
Definition parser_base.h:16