TinyURDF 1.0.0
Loading...
Searching...
No Matches
sphere.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_CORE_SPHERE_H_
2#define INCLUDE_TINYURDF_CORE_SPHERE_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <loguru/loguru.hpp>
8
9class Sphere : public GeometryBase {
10 public:
11 Sphere();
12 Sphere(double r);
13 bool isA(const char* name) const override;
14 std::string toString() const override;
15 void clear() override;
16 const char* getTypename() const override;
17 double getRadius() const;
18 void setRadius(double r);
19 void setOrigin(double x, double y, double z) override;
20 void getOrigin(double* xyz) const override;
21 double getRadius() override;
22 bool empty() const override;
23
24 private:
25 double radius;
26};
27
28#endif // INCLUDE_TINYURDF_CORE_SPHERE_H_
base class for all geometry entities
Definition geometry_base.h:12
Definition sphere.h:9
void getOrigin(double *xyz) const override
Definition sphere.cc:48
const char * getTypename() const override
Definition sphere.cc:26
void setOrigin(double x, double y, double z) override
Definition sphere.cc:44
Sphere()
Definition sphere.cc:3
bool isA(const char *name) const override
Definition sphere.cc:12
double getRadius() const
Definition sphere.cc:31
bool empty() const override
Definition sphere.cc:57
void setRadius(double r)
Definition sphere.cc:35
void clear() override
Definition sphere.cc:22
std::string toString() const override
Definition sphere.cc:16