TinyURDF 1.0.0
Loading...
Searching...
No Matches
cylinder.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_CORE_CYLINDER_H_
2#define INCLUDE_TINYURDF_CORE_CYLINDER_H_
3
4// Copyright 2025 Wissem CHIHA
5
7
8class Cylinder : public GeometryBase {
9public:
10 Cylinder();
11 Cylinder(double r, double l);
12 bool isA(const char* name) const override;
13 std::string toString() const override;
14 void clear() override;
15 bool empty() const override;
16 const char* getTypename() const override;
17 void setOrigin(double x, double y, double z) override;
18 void getOrigin(double* xyz) const override;
19 void setLength(double l);
20 void setRadius(double r);
21 double getLength() override;
22 double getRadius() override;
23private:
24 double length, radius;
25};
26#endif // INCLUDE_TINYURDF_GEOMETRY_CYLINDER_H_
Definition cylinder.h:8
Cylinder()
Definition cylinder.cc:4
const char * getTypename() const override
Definition cylinder.cc:34
void getOrigin(double *xyz) const override
Definition cylinder.cc:43
double getRadius() override
Definition cylinder.cc:62
void setLength(double l)
Definition cylinder.cc:47
bool empty() const override
Definition cylinder.cc:29
std::string toString() const override
Definition cylinder.cc:17
void clear() override
Definition cylinder.cc:24
void setRadius(double r)
Definition cylinder.cc:52
void setOrigin(double x, double y, double z) override
Definition cylinder.cc:39
double getLength() override
Definition cylinder.cc:57
bool isA(const char *name) const override
Definition cylinder.cc:13
base class for all geometry entities
Definition geometry_base.h:12