TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
collision_parser.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_COLLISION_PARSER_H_
2#define INCLUDE_TINYURDF_COLLISION_PARSER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <memory>
7
8#include "parser_base.h"
9#include "collision.h"
10#include "geometry_parser.h"
11#include "pose_parser.h"
12#include "utils.h"
13
14class CollisionParser : public ParserBase<Collision>{
15public:
17 void print(std::ostream& os) override;
18 bool empty() const override;
19 void clear() override;
20 const char* getTypename() override;
21 bool isA(const char* name) override;
22 void parse(const tinyxml2::XMLElement* xml) override;
23 std::shared_ptr<Collision> get() override;
25private:
26 std::shared_ptr<Collision> p_;
27};
28#endif // INCLUDE_TINYURDF_COLLISION_PARSER_H_
Definition collision_parser.h:14
bool empty() const override
Definition collision_parser.cc:15
void clear() override
Definition collision_parser.cc:20
bool isA(const char *name) override
Definition collision_parser.cc:30
std::shared_ptr< Collision > get() override
Definition collision_parser.cc:55
~CollisionParser()
Definition collision_parser.cc:60
const char * getTypename() override
Definition collision_parser.cc:25
CollisionParser()
Definition collision_parser.cc:3
void print(std::ostream &os) override
Definition collision_parser.cc:8
void parse(const tinyxml2::XMLElement *xml) override
Definition collision_parser.cc:35
Definition parser_base.h:16