TinyURDF 1.0.0
Loading...
Searching...
No Matches
box.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_CORE_BOX_H_
2#define INCLUDE_TINYURDF_CORE_BOX_H_
3
4// Copyright 2024 Wissem CHIHA
5
6#include <string>
7#include "utility/utils.h"
9
10class Box : public GeometryBase{
11 public:
12 Box();
13 explicit Box(double* xyz);
14 Box(double x, double y, double z);
15 bool isA(const char* name) const override;
16 const char* getTypename() const override;
17 bool empty() const override;
18 std::string toString() const override;
19 void setOrigin(double x, double y, double z) override;
20 void getOrigin(double* xyz) const override;
21 Vec3 getDim() const;
22 void clear() override;
23 ~Box();
24 private:
25 Vec3 dim;
26};
27#endif // INCLUDE_TINYURDF_CORE_BOX_H_
Definition box.h:10
const char * getTypename() const override
Definition box.cc:24
void setOrigin(double x, double y, double z) override
Definition box.cc:40
~Box()
Definition box.cc:61
std::string toString() const override
Definition box.cc:34
bool isA(const char *name) const override
Definition box.cc:20
void clear() override
Definition box.cc:52
Vec3 getDim() const
Definition box.cc:56
Box()
Definition box.cc:3
bool empty() const override
Definition box.cc:29
void getOrigin(double *xyz) const override
Definition box.cc:46
base class for all geometry entities
Definition geometry_base.h:12
Eigen::Matrix< double, 3, 1 > Vec3
Base struct for 3D position vectors.
Definition utils.h:17