codac 2.0.0
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_min = 0.0; // min linear speed (m/s)
23 double v_max = 1.0; // max linear speed (m/s)
24 double w_max = 1.0; // max rotational speed (rad/s)
25 double a_max = 2.0; // max linear acceleration (m/s²)
26 double dist_threshold = 0.2; // waypoint change threshold
27
28 RobotSimulator();
29 Vector controller(const Vector& x, const Vector& wpt) const;
30 SampledTraj<Vector> simulate(const Vector& x0, double dt, std::list<Vector> wpts, SampledTraj<Vector>& u) const;
31 };
32}
Eigen::Matrix< double,-1, 1 > Vector
Alias for a dynamically-sized column vector of doubles.
Definition codac2_Vector.h:24