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