TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
visual.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_VISUAL_H_
2#define INCLUDE_TINYURDF_VISUAL_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include <type_traits>
7#include <memory>
8
9#include "pose.h"
10#include "material.h"
11#include "geometry_base.h"
12#include "property_base.h"
13
14class Visual : public PropertyBase {
15public:
16 Visual();
17 void clear() override;
18 bool isA(const char* name) override;
19 void setOrigin(std::shared_ptr<Pose> o);
20 void getOrigin(double* xyz) const;
21 std::shared_ptr<Pose> getPose() const;
22 void print(std::ostream& os) override;
23 bool empty() const;
24 const char* getTypename();
25 void setGeometry(std::shared_ptr<GeometryBase> geo);
26 std::shared_ptr<GeometryBase> getGeometry() const;
27 void setMaterial(std::shared_ptr<Material> mat);
28 void setMaterialName(const std::string& name);
29 ~Visual();
30private:
31 std::shared_ptr<Pose> origin;
32 std::shared_ptr<GeometryBase> geometry;
33 std::string material_name;
34 std::shared_ptr<Material> material;
35};
36#endif // INCLUDE_TINYURDF_VISUAL_H_
Definition property_base.h:9
Definition visual.h:14
void setMaterialName(const std::string &name)
Definition visual.cc:74
Visual()
Definition visual.cc:3
void setMaterial(std::shared_ptr< Material > mat)
Definition visual.cc:69
bool isA(const char *name) override
Definition visual.cc:21
void setGeometry(std::shared_ptr< GeometryBase > geo)
Definition visual.cc:80
void clear() override
Definition visual.cc:14
std::shared_ptr< Pose > getPose() const
Definition visual.cc:37
bool empty() const
Definition visual.cc:59
void print(std::ostream &os) override
Definition visual.cc:42
void getOrigin(double *xyz) const
Definition visual.cc:30
std::shared_ptr< GeometryBase > getGeometry() const
Definition visual.cc:84
void setOrigin(std::shared_ptr< Pose > o)
Definition visual.cc:25
const char * getTypename()
Definition visual.cc:64
~Visual()
Definition visual.cc:10