TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
geometry_base.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_GEOMETRY_GEOMETRY_BASE_H_
2#define INCLUDE_TINYURDF_GEOMETRY_GEOMETRY_BASE_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include "object_base.h"
7#include "utils.h"
8
9class GeometryBase : public ObjectBase {
10public:
11 virtual ~GeometryBase() = default;
12 virtual void setOrigin(double x, double y, double z) = 0;
13 virtual void getOrigin(double* xyz) const = 0;
14 virtual double getRadius(){return 0;};
15 virtual double getLength(){return 0;};
16 virtual std::string getFilename(){return std::string("");};
17 virtual Vec3 getScale(){return Vec3(0,0,0);};
18protected:
20};
21#endif // INCLUDE_TINYURDF_GEOMETRY_GEOMETRY_BASE_H_
Definition geometry_base.h:9
virtual ~GeometryBase()=default
virtual Vec3 getScale()
Definition geometry_base.h:17
virtual void getOrigin(double *xyz) const =0
virtual void setOrigin(double x, double y, double z)=0
virtual double getLength()
Definition geometry_base.h:15
virtual std::string getFilename()
Definition geometry_base.h:16
GeometryBase()
Definition geometry_base.h:19
virtual double getRadius()
Definition geometry_base.h:14
Definition object_base.h:11
Eigen::Matrix< double, 3, 1 > Vec3
Definition utils.h:14