TrajoptLib
Library for generating time-optimal trajectories for FRC robots.
Loading...
Searching...
No Matches
trajopt::DifferentialTrajectorySample Class Reference

Differential trajectory sample. More...

#include <trajopt/differential_trajectory_generator.hpp>

Public Member Functions

 DifferentialTrajectorySample (double timestamp, double x, double y, double heading, double velocity_l, double velocity_r, double angular_velocity, double acceleration_l, double acceleration_r, double angular_acceleration, double force_l, double force_r)

Public Attributes

double timestamp = 0.0
 The timestamp.
double x = 0.0
 The x coordinate.
double y = 0.0
 The y coordinate.
double heading = 0.0
 The heading.
double velocity_l = 0.0
 The left wheel's velocity.
double velocity_r = 0.0
 The right wheel's velocity.
double angular_velocity = 0.0
 The chassis angular velocity.
double acceleration_l = 0.0
 The left wheel's acceleration.
double acceleration_r = 0.0
 The right wheel's acceleration.
double angular_acceleration = 0.0
 The chassis angular acceleration.
double force_l = 0.0
 The left wheel's force.
double force_r = 0.0
 The right wheel's force.

Detailed Description

Differential trajectory sample.

Constructor & Destructor Documentation

◆ DifferentialTrajectorySample()

trajopt::DifferentialTrajectorySample::DifferentialTrajectorySample ( double timestamp,
double x,
double y,
double heading,
double velocity_l,
double velocity_r,
double angular_velocity,
double acceleration_l,
double acceleration_r,
double angular_acceleration,
double force_l,
double force_r )
inline

Construct a DifferentialTrajectorySample.

Parameters
timestampThe timestamp.
xThe x coordinate.
yThe y coordinate.
headingThe heading.
velocity_lThe left wheel velocity.
velocity_rThe right wheel velocity.
angular_velocityThe chassis angular velocity.
acceleration_lThe left wheel acceleration.
acceleration_rThe right wheel acceleration.
angular_accelerationThe chassis angular acceleration.
force_lThe left wheel force.
force_rThe right wheel force.

The documentation for this class was generated from the following file: