TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
collision.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_COLLISION_H_
2#define INCLUDE_TINYURDF_COLLISION_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <memory>
7
8#include "property_base.h"
9#include "geometry_base.h"
10#include "pose.h"
11
12class Collision : public PropertyBase
13{
14public:
15 Collision();
16 bool isA(const char* name) override;
17 void clear() override;
18 void print(std::ostream& os) override;
19 void setGeometry(std::shared_ptr<GeometryBase> geometry);
20 std::shared_ptr<GeometryBase> getGeometry() const;
21 void setOrigin(std::shared_ptr<Pose> o_);
22 void getOrigin(double* xyz) const;
23private:
24 std::shared_ptr<GeometryBase> geometry;
25 std::shared_ptr<Pose> origin;
26};
27
28#endif // TINYURDF_COLLISION_H
Definition collision.h:13
void print(std::ostream &os) override
Definition collision.cc:19
std::shared_ptr< GeometryBase > getGeometry() const
Definition collision.cc:36
bool isA(const char *name) override
Definition collision.cc:9
void setOrigin(std::shared_ptr< Pose > o_)
Definition collision.cc:41
void getOrigin(double *xyz) const
Definition collision.cc:46
void clear() override
Definition collision.cc:13
Collision()
Definition collision.cc:3
void setGeometry(std::shared_ptr< GeometryBase > geometry)
Definition collision.cc:31
Definition property_base.h:9