TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
box.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_GEOMETRY_BOX_H_
2#define INCLUDE_TINYURDF_GEOMETRY_BOX_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <string>
7#include <ostream>
8
9#include "utils.h"
10#include "geometry_base.h"
11
12class Box : public GeometryBase{
13public:
14 Box();
15 explicit Box(double* xyz);
16 Box(double x, double y, double z);
17 bool isA(const char* name) override;
18 const char* getTypename() override;
19 bool empty() const override;
20 void print(std::ostream& os) override;
21 void setOrigin(double x, double y, double z) override;
22 void getOrigin(double* xyz) const override;
23 Vec3 getDim() const;
24 void clear() override;
25 ~Box();
26 private:
27 Vec3 dim;
28};
29#endif // INCLUDE_TINYURDF_GEOMETRY_BOX_H_
Definition box.h:12
void setOrigin(double x, double y, double z) override
Definition box.cc:38
const char * getTypename() override
Definition box.cc:24
~Box()
Definition box.cc:59
void clear() override
Definition box.cc:50
Vec3 getDim() const
Definition box.cc:54
Box()
Definition box.cc:3
void print(std::ostream &os) override
Definition box.cc:34
bool empty() const override
Definition box.cc:29
bool isA(const char *name) override
Definition box.cc:20
void getOrigin(double *xyz) const override
Definition box.cc:44
Definition geometry_base.h:9
Eigen::Matrix< double, 3, 1 > Vec3
Definition utils.h:14