#include <mc_trajectory/Spline.h>
|
| Spline (double duration, const T &start, const T &target, const WaypointsT &waypoints={}) |
|
void | waypoints (const WaypointsT &waypoints) |
| Defines waypoints. More...
|
|
const WaypointsT & | waypoints () const |
| Returns waypoints. More...
|
|
void | start (const T &start) |
| Starting point for the trajectory at time t=0. More...
|
|
const T & | start () const |
| Starting point at time t=0. More...
|
|
void | target (const T &target) |
| Sets the spline target. More...
|
|
const T & | target () const |
| Gets the spline target position. More...
|
|
void | samplingPoints (unsigned s) |
| Number of sampling points for the trajectory visualization. More...
|
|
unsigned | samplingPoints () const |
| Gets number of samples. More...
|
|
virtual void | update ()=0 |
| Triggers recreation of the curve. Will only occur if the curve parameters were modified (waypoints, target), or the sampling size has changed. More...
|
|
◆ Spline()
template<typename T , typename WaypointsT >
mc_trajectory::Spline< T, WaypointsT >::Spline |
( |
double |
duration, |
|
|
const T & |
start, |
|
|
const T & |
target, |
|
|
const WaypointsT & |
waypoints = {} |
|
) |
| |
◆ samplingPoints() [1/2]
template<typename T , typename WaypointsT >
Gets number of samples.
- Returns
- number of samples
◆ samplingPoints() [2/2]
template<typename T , typename WaypointsT >
Number of sampling points for the trajectory visualization.
- Parameters
-
s | Number of sampling points. If the number of samples is different from the one previously specified, this will trigger a curve recomputation. |
◆ start() [1/2]
template<typename T , typename WaypointsT >
Starting point at time t=0.
- Returns
- starting point
◆ start() [2/2]
template<typename T , typename WaypointsT >
Starting point for the trajectory at time t=0.
- Parameters
-
◆ target() [1/2]
template<typename T , typename WaypointsT >
Gets the spline target position.
- Returns
- The spline target position
◆ target() [2/2]
template<typename T , typename WaypointsT >
Sets the spline target.
- Parameters
-
target | final target for the spline |
◆ update()
template<typename T , typename WaypointsT >
◆ waypoints() [1/2]
template<typename T , typename WaypointsT >
Returns waypoints.
- Returns
- Waypoints. Doesn't include starting and target orienation (use start() and target() instead).
◆ waypoints() [2/2]
template<typename T , typename WaypointsT >
Defines waypoints.
- Parameters
-
waypoints | Waypoints. Shouldn't include starting and target orientation (use start() and target() instead). Time should be 0<time<duration. |
◆ duration_
template<typename T , typename WaypointsT >
◆ needsUpdate_
template<typename T , typename WaypointsT >
◆ samples_
template<typename T , typename WaypointsT >
◆ samplingPoints_
template<typename T , typename WaypointsT >
◆ start_
template<typename T , typename WaypointsT >
◆ target_
template<typename T , typename WaypointsT >
◆ waypoints_
template<typename T , typename WaypointsT >
The documentation for this struct was generated from the following file: