bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
infrared.h
Go to the documentation of this file.
1#ifndef BITSIM_SENSORS_MESSAGES_INFRARED_H
2#define BITSIM_SENSORS_MESSAGES_INFRARED_H
3
6
7#include <optional>
8#include <string>
9#include <vector>
10
11namespace bitsim
12{
13namespace sensors
14{
15
31{
33 std::vector<real_t> values;
34
36 static std::optional<InfraredMessage> parse(const std::string &msg);
37};
38
39} // namespace sensors
40} // namespace bitsim
41
42#endif // BITSIM_SENSORS_MESSAGES_INFRARED_H
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
Definition infrared_line_follower.h:9
Definition dc_motor_backend_base.h:9
Models a message from an array of infrared reflectance sensors, one value per element:
Definition infrared.h:31
static std::optional< InfraredMessage > parse(const std::string &msg)
Definition infrared.cpp:12
std::vector< real_t > values
The reflectance under each element, in [0, 1].
Definition infrared.h:33
Definition message_base.h:15