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.
21 lines
509 B
21 lines
509 B
#include <stdlib.h>
|
|
#include <math.h>
|
|
#include "Trajectroy.h"
|
|
#include "BangBangTrajectroy.h"
|
|
#include "vec.h"
|
|
#include "SvrData.h"
|
|
|
|
template <class T, unsigned SIZE>
|
|
BangBangJointTrajectroy::BangBangJointTrajectroy(
|
|
unsigned int steps_,
|
|
float totalTime_,
|
|
Vec<float,SIZE> jointMovement
|
|
)
|
|
{
|
|
Vec< float, SIZE> velocity = jointMovement / steps * 1.5f;
|
|
LinearJointTrajectory(
|
|
steps_,
|
|
totalTime_,
|
|
jointMovement,
|
|
velocity);
|
|
}
|