TinyURDF 1.0.0
Loading...
Searching...
No Matches
joint_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_INTERNAL_JOINT_PARSER_H_
2#define INCLUDE_TINYURDF_INTERNAL_JOINT_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <tinyxml2/tinyxml2.h>
7
8#include <loguru/loguru.hpp>
9
10#include "common/parser_base.h"
12#include "core/joint.h"
13#include "core/pose.h"
15#include "utility/utils.h"
16
47class JointParser final : public ParserBase<Joint>
48{
49 public:
51 void parse(const tinyxml2::XMLElement* xml) override;
52 const char* getTypename() const override;
53 std::shared_ptr<Joint> get() override;
54 void clear() override;
55 bool empty() const override;
56 std::string toString() const override;
57 bool isA(const char* name) const override;
59
60 private:
61 std::shared_ptr<Joint> p_;
62};
63#endif // INCLUDE_TINYURDF_INTERNAL_JOINTPARSER_H
generalized description of a joint:
Definition joint_parser.h:48
bool isA(const char *name) const override
Definition joint_parser.cc:168
bool empty() const override
Definition joint_parser.cc:154
~JointParser()
Definition joint_parser.cc:172
JointParser()
Definition joint_parser.cc:3
std::string toString() const override
Definition joint_parser.cc:159
void parse(const tinyxml2::XMLElement *xml) override
Definition joint_parser.cc:8
const char * getTypename() const override
Definition joint_parser.cc:139
void clear() override
Definition joint_parser.cc:149
std::shared_ptr< Joint > get() override
Definition joint_parser.cc:144
Definition parser_base.h:15