1#ifndef BITSIM_SENSORS_BACKENDS_CHRONO_INFRARED_BACKEND_H
2#define BITSIM_SENSORS_BACKENDS_CHRONO_INFRARED_BACKEND_H
4#include "bitsim/bitsim_config.h"
10#include <chrono/physics/ChBody.h>
55 bool has_floor() const noexcept {
return static_cast<bool>(floor_); }
void set_floor(Floor floor)
Set the floor the elements look at.
Definition chrono_infrared_backend.h:53
bool has_floor() const noexcept
Definition chrono_infrared_backend.h:55
std::function< real_t(real_t x, real_t y)> Floor
The reflectance of the floor at a point of the world, in [0, 1].
Definition chrono_infrared_backend.h:38
static const std::string BACKEND_TYPE
Definition chrono_infrared_backend.h:40
std::vector< real_t > read_values() override
Read the floor under each element.
Definition chrono_infrared_backend.cpp:25
CHRONO_InfraredBackend()
Constructor. Attach a body with set_chrono_body() and a floor with set_floor() before reading.
Definition chrono_infrared_backend.cpp:17
InfraredBackendBase(const std::string &backend_type)
Definition infrared_backend_base.h:108
Definition camera_backend_base.h:19
Definition dc_motor_backend_base.h:9
double real_t
real_t
Definition bitsim_types.h:20