TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
cylinder.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_GEOMETRY_CYLINDER_H_
2#define INCLUDE_TINYURDF_GEOMETRY_CYLINDER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <ostream>
7#include <string>
8
9#include "geometry_base.h"
10
11class Cylinder : public GeometryBase {
12public:
13 Cylinder();
14 Cylinder(double r, double l);
15 bool isA(const char* name) override;
16 void print(std::ostream& os) override;
17 void clear() override;
18 bool empty() const override;
19 const char* getTypename() override;
20 void setOrigin(double x, double y, double z) override;
21 void getOrigin(double* xyz) const override;
22 void setLength(double l);
23 void setRadius(double r);
24 double getLength() override;
25 double getRadius() override;
26private:
27 double length, radius;
28};
29#endif // INCLUDE_TINYURDF_GEOMETRY_CYLINDER_H_
Definition cylinder.h:11
Cylinder()
Definition cylinder.cc:3
void getOrigin(double *xyz) const override
Definition cylinder.cc:39
double getRadius() override
Definition cylinder.cc:58
void setLength(double l)
Definition cylinder.cc:43
bool empty() const override
Definition cylinder.cc:25
void clear() override
Definition cylinder.cc:20
void setRadius(double r)
Definition cylinder.cc:48
void setOrigin(double x, double y, double z) override
Definition cylinder.cc:35
const char * getTypename() override
Definition cylinder.cc:30
double getLength() override
Definition cylinder.cc:53
bool isA(const char *name) override
Definition cylinder.cc:12
void print(std::ostream &os) override
Definition cylinder.cc:16
Definition geometry_base.h:9