bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
bitrl_types.h
Go to the documentation of this file.
1#ifndef CUBEAI_TYPES_H
2#define CUBEAI_TYPES_H
3
4#include "bitrl/base/bitrl_config.h"
6
7#ifdef USE_PYTORCH
8#include <torch/torch.h>
9#endif
10
11#include <cstddef>
12#include <string>
13
14namespace bitrl
15{
16
17using namespace bitsim;
18
22using bitsim::int_t;
23
27using bitsim::lint_t;
28
32using bitsim::float_t;
33
37using bitsim::real_t;
38
42using bitsim::DynMat;
43
48
52using bitsim::Mat;
53
57using bitsim::DynVec;
58
63
67using bitsim::RealVec;
68
72using bitsim::Null;
73
78
79#ifdef USE_PYTORCH
83struct torch_t
84{
85};
86
90typedef long int torch_int_t;
91
95typedef torch::Tensor torch_tensor_t;
96
97template <typename T> struct torch_tensor_value_type
98{
99 typedef T value_type;
100};
101#endif
102
103} // namespace bitrl
104
105#endif
The basic types of bitsim. Code outside this file names Eigen's matrix and vector types only through ...
Various utilities used when working with RL problems.
Definition bitrl_log.h:25
long int torch_int_t
torch_int_t
Definition bitrl_types.h:90
torch::Tensor torch_tensor_t
torch_tensor_t
Definition bitrl_types.h:95
Eigen::MatrixX< T > DynMat
Dynamically sized matrix to use around the library.
Definition bitsim_types.h:51
DynVec< real_t > RealVec
double precision floating point vector
Definition bitsim_types.h:111
DynVec< float_t > FloatVec
single precision floating point vector
Definition bitsim_types.h:106
float float_t
float
Definition bitsim_types.h:25
Eigen::Matrix< T, N, N > SquareMat
Square matrix with elements of type T.
Definition bitsim_types.h:61
double real_t
real_t
Definition bitsim_types.h:20
DeviceType
Enumeration of various device types.
Definition bitsim_types.h:186
int int_t
integer type
Definition bitsim_types.h:30
Eigen::RowVectorX< T > DynVec
Dynamically sized row vector.
Definition bitsim_types.h:101
long int lint_t
long int type
Definition bitsim_types.h:35
Eigen::Matrix< T, N, M > Mat
General fixed size matrix.
Definition bitsim_types.h:66
placeholder for torch
Definition bitrl_types.h:84
Definition bitrl_types.h:98
T value_type
Definition bitrl_types.h:99
Null placeholder.
Definition bitsim_types.h:179