TinyURDF 1.0.0
A Modern C++ Library for Parsing and Visualizing URDF Model Files
Loading...
Searching...
No Matches
urdf_renderer.h
Go to the documentation of this file.
1#ifndef INCLUDE_TINYURDF_URDF_RENDERER_H_
2#define INCLUDE_TINYURDF_URDF_RENDERER_H_
3
4// Copyright 2025 Wissem CHIHA
5
6#include "model.h"
7#include "renderer_base.h"
9
11public:
13 void setModel(const Model& model);
14 std::shared_ptr<Model> getModel() const;
15 void show();
16 void setWindowSize(const int32_t width, const int32_t height);
17 void setBackrgournd(double r, double g, double b, double a);
18 void setLabelsVisibility(bool isVisible);
20private:
21 vtkSmartPointer<vtkRenderWindow> renderWindow_;
22 std::shared_ptr<Model> model_;
23 int32_t width_= 800;
24 int32_t height_ =600;
25 bool labels_= true;
26 double r_, g_, b_, a_;
27};
28#endif // TINYURDF_URDF_RENDERER_H_
base class for representing a multi-body system
Definition model.h:23
Definition urdf_renderer.h:10
void setModel(const Model &model)
Definition urdf_renderer.cc:9
void setBackrgournd(double r, double g, double b, double a)
Definition urdf_renderer.cc:35
~URDFRenderer()
Definition urdf_renderer.cc:43
void setLabelsVisibility(bool isVisible)
Definition urdf_renderer.cc:49
void setWindowSize(const int32_t width, const int32_t height)
Definition urdf_renderer.cc:29
URDFRenderer()
Definition urdf_renderer.cc:3
std::shared_ptr< Model > getModel() const
Definition urdf_renderer.cc:14
void show()
Definition urdf_renderer.cc:19