codac
1.5.6
Loading...
Searching...
No Matches
src
core
tools
codac2_RobotSimulator.h
Go to the documentation of this file.
1
9
10
#pragma once
11
12
#include <list>
13
#include "
codac2_Vector.h
"
14
#include "
codac2_SampledTraj.h
"
15
16
namespace
codac2
17
{
18
class
RobotSimulator
19
{
20
public
:
21
22
double
v_max = 1.0;
// max linear speed (m/s)
23
double
w_max = 1.0;
// max rotational speed (rad/s)
24
double
a_max = 2.0;
// max linear acceleration (m/s²)
25
double
dist_threshold = 0.2;
// waypoint change threshold
26
27
RobotSimulator();
28
Vector controller(
const
Vector& x,
const
Vector& wpt)
const
;
29
SampledTraj<Vector> simulate(
const
Vector& x0,
double
dt, std::list<Vector> wpts)
const
;
30
};
31
}
codac2_SampledTraj.h
codac2_Vector.h
Generated by
1.13.0