codac 1.5.6
Loading...
Searching...
No Matches
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
16namespace 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}