You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

29 lines
787 B

#ifndef _TRAJECTORY_H_
#define _TRAJECTORY_H_
class Trajectory
{
public:
Trajectory();
Trajectory(unsigned int steps);
Trajectory(unsigned int steps, unsigned int joints);
~Trajectory();
unsigned int update();
unsigned int getSteps();
unsigned int getJoints();
float getJointPos(unsigned int index, unsigned int joint);
float getCartPos(unsigned int index, unsigned int joint);
float getVelocity(unsigned int index, unsigned int joint);
float getAcceleration(unsigned int index, unsigned int joint);
protected:
static const unsigned int defaultSteps = 100;
static const unsigned int defaultJoints = 1;
unsigned int steps;
unsigned int joints;
};
#endif