Frankx  0.2.0
A High-Level Motion API for Franka
trajectory.hpp
Go to the documentation of this file.
1 #pragma once
2 
3 #include <movex/path/path.hpp>
4 
5 
6 namespace movex {
7 
8 struct Trajectory {
9  struct State {
11  double t;
12 
14  double s, ds, dds, ddds;
15  };
16 
18 
20  std::vector<State> states;
21 
22  explicit Trajectory() { }
23  explicit Trajectory(const Path& path): path(path) { }
24 };
25 
26 } // namespace movex
movex::Trajectory::Trajectory
Trajectory()
Definition: trajectory.hpp:22
movex::Path
Definition: path.hpp:15
movex::Trajectory::State::dds
double dds
Definition: trajectory.hpp:14
movex::Trajectory::State
Definition: trajectory.hpp:9
movex::Trajectory
Definition: trajectory.hpp:8
movex::Trajectory::State::ds
double ds
Definition: trajectory.hpp:14
movex::Trajectory::path
Path path
Definition: trajectory.hpp:17
movex::Trajectory::State::s
double s
The path position (between 0 and the path length) and its derivatives.
Definition: trajectory.hpp:14
movex::Trajectory::State::ddds
double ddds
Definition: trajectory.hpp:14
movex::Trajectory::states
std::vector< State > states
The trajectory state for each consecutive time step (with delta_time difference of the time parametri...
Definition: trajectory.hpp:20
movex
Definition: motion_impedance.hpp:13
path.hpp
movex::Trajectory::Trajectory
Trajectory(const Path &path)
Definition: trajectory.hpp:23
movex::Trajectory::State::t
double t
The time i n[s].
Definition: trajectory.hpp:11