bitsim
Model, simulate, estimate and control robots in C++
Loading...
Searching...
No Matches
time_step_type.h
Go to the documentation of this file.
1#ifndef TIME_STEP_TYPE_H
2#define TIME_STEP_TYPE_H
3
5#include <string>
6#include <vector>
7
8namespace bitrl
9{
10
14enum class TimeStepTp : uint_t
15{
16 FIRST = 0,
17 MID = 1,
18 LAST = 2,
20};
21
26{
29 static std::string to_string(TimeStepTp type);
30 static std::vector<TimeStepTp> time_step_type_from_int(const std::vector<uint_t> &types);
31};
32
33} // namespace bitrl
34
35#endif // TIME_STEP_TYPE_H
Various utilities used when working with RL problems.
Definition bitrl_log.h:25
TimeStepTp
The TimeStepTp enum.
Definition time_step_type.h:15
@ INVALID_TYPE
Definition time_step_type.h:19
@ MID
Definition time_step_type.h:17
@ FIRST
Definition time_step_type.h:16
@ LAST
Definition time_step_type.h:18
std::size_t uint_t
uint_t
Definition bitsim_types.h:40
Utilities for TimeStepTp.
Definition time_step_type.h:26
static std::vector< TimeStepTp > time_step_type_from_int(const std::vector< uint_t > &types)
static TimeStepTp time_step_type_from_int(uint_t aidx)
static std::string to_string(TimeStepTp type)
static TimeStepTp time_step_type_from_int(int aidx)