bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
irrlicht_utils.h
Go to the documentation of this file.
1#ifndef BITSIM_UTILS_RENDER_IRRLICHT_UTILS_H
2#define BITSIM_UTILS_RENDER_IRRLICHT_UTILS_H
3
4#include "bitsim/bitsim_config.h"
5
6#if defined(BITSIM_IRRLICHT) && defined(BITSIM_CHRONO)
8#include <chrono/core/ChFrame.h>
9#include <chrono_irrlicht/ChVisualSystemIrrlicht.h>
10
11#include <string>
12
13namespace bitsim
14{
15namespace utils
16{
17namespace render
18{
19
23void irr_draw_world_axes(chrono::irrlicht::ChVisualSystemIrrlicht &vis, real_t scale = 1.0);
24
29void irr_draw_line(chrono::irrlicht::ChVisualSystemIrrlicht &vis, const chrono::ChVector3d &start,
30 const chrono::ChVector3d &end, const chrono::ChColor &color,
31 real_t thickness = 2.0);
32
38void irr_draw_label(chrono::irrlicht::ChVisualSystemIrrlicht &vis, const std::string &text,
39 const chrono::ChVector3d &position,
40 const chrono::ChColor &color = chrono::ChColor(1.0f, 1.0f, 1.0f));
41
46void irr_draw_frame(chrono::irrlicht::ChVisualSystemIrrlicht &vis, const chrono::ChFrame<> &frame,
47 real_t scale = 1.0, const std::string &label = "");
48
49} // namespace render
50} // namespace utils
51} // namespace bitsim
52
53#endif
54#endif // BITSIM_UTILS_RENDER_IRRLICHT_UTILS_H
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
Definition irrlicht_scene.cpp:20
void irr_draw_world_axes(chrono::irrlicht::ChVisualSystemIrrlicht &vis, real_t scale)
Definition irrlicht_utils.cpp:65
void irr_draw_frame(chrono::irrlicht::ChVisualSystemIrrlicht &vis, const chrono::ChFrame<> &frame, real_t scale, const std::string &label)
Definition irrlicht_utils.cpp:49
void irr_draw_line(chrono::irrlicht::ChVisualSystemIrrlicht &vis, const chrono::ChVector3d &start, const chrono::ChVector3d &end, const chrono::ChColor &color, real_t thickness)
Definition irrlicht_utils.cpp:19
void irr_draw_label(chrono::irrlicht::ChVisualSystemIrrlicht &vis, const std::string &text, const chrono::ChVector3d &position, const chrono::ChColor &color)
Definition irrlicht_utils.cpp:36
Definition bitsim_utils.h:11
Definition dc_motor_backend_base.h:9
double real_t
real_t
Definition bitsim_types.h:20