|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.robotics.engine.trajectory.Trapezoidal
public class Trapezoidal
This class implements trapezoidal velocity profile interpolator.
| Field Summary |
|---|
| Fields inherited from interface javax.robotics.engine.trajectory.Trajectory |
|---|
BAD_DATA, NOT_IN_RANGE |
| Constructor Summary | |
|---|---|
Trapezoidal(double ps,
double pf,
double vMax,
double tf)
Constructor of trapezoidal interpolator for a single trajectory. |
|
Trapezoidal(java.io.File fileName)
Constructor of trapezoidal interpolator from XML file. |
|
Trapezoidal(java.io.InputStream fileName)
Constructor of trapezoidal interpolator from XML input stream. |
|
Trapezoidal(RVector ps,
RVector pf,
RVector vMax,
double tf)
Constructor of trapezoidal interpolator for trajectories of the same durations. |
|
Trapezoidal(RVector ps,
RVector pf,
RVector vMax,
RVector tf)
Constructor of trapezoidal interpolator for trajectories of differents durations. |
|
Trapezoidal(java.lang.String fileName)
Constructor of trapezoidal interpolator from XML file. |
|
Trapezoidal(java.net.URI uri)
Constructor of trapezoidal interpolator with URI of xml file parameter. |
|
| Method Summary | |
|---|---|
short |
getError()
Gets error flag. |
short |
getID()
Gets Trajectory class ID. |
pathML.PathConfigurationType |
getXmlHandler()
Gets the xml confguration handler of trajectory. |
double[] |
interpolate(double t)
Interpolates at time t to set the position, velocity and acceleration. |
void |
interpolate(double t,
Quaternion q,
RVector3d w)
Deprecated. |
void |
interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp)
Interpolates at time t to set the position, velocity and acceleration. |
void |
interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp,
Quaternion q,
RVector3d w)
Deprecated. |
void |
interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp,
Quaternion q,
RVector3d w,
RVector3d wp)
Deprecated. |
void |
interpolate(double t,
RVector p,
RVector pp,
RVector ppp)
Interpolates at time t to set the position, velocity and acceleration. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Trapezoidal(java.net.URI uri)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
uri - xml configuration file URI of robot parameter
org.apache.xmlbeans.XmlException
java.io.IOException
public Trapezoidal(java.lang.String fileName)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
fileName - the xml trapezoidal path file.
org.apache.xmlbeans.XmlException
java.io.IOException
public Trapezoidal(java.io.File fileName)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
fileName - the xml trapezoidal path file.
org.apache.xmlbeans.XmlException
java.io.IOException
public Trapezoidal(java.io.InputStream fileName)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
fileName - the xml trapezoidal path file.
org.apache.xmlbeans.XmlException
java.io.IOException
public Trapezoidal(RVector ps,
RVector pf,
RVector vMax,
double tf)
ps - the initial positions.pf - the final positions.vMax - the maximum velocities (the absolute value is taken).tf - the final time.
public Trapezoidal(RVector ps,
RVector pf,
RVector vMax,
RVector tf)
ps - the initial positions.pf - the final positions.vMax - the maximum velocities (the absolute value is taken).tf - the final times.
public Trapezoidal(double ps,
double pf,
double vMax,
double tf)
pf - the final position.vMax - the maximum velocity (the absolute value is taken).tf - the final time.| Method Detail |
|---|
public short getID()
Trajectory
getID in interface Trajectorypublic short getError()
Trajectory
getError in interface TrajectoryTrajectory.interpolate(double, RVector, RVector, RVector),
Trajectory.interpolate(double, Quaternion, RVector3d)public final pathML.PathConfigurationType getXmlHandler()
getXmlHandler in interface Trajectory
public void interpolate(double t,
RVector p,
RVector pp,
RVector ppp)
Trajectory
interpolate in interface Trajectoryt - timep - the position at time tpp - the velocity at time tppp - the acceleration at time t
public void interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp)
Trajectory
interpolate in interface Trajectoryt - timep - the position at time tpp - the velocity at time tppp - the acceleration at time tpublic double[] interpolate(double t)
Trajectory
interpolate in interface Trajectoryt - time
public void interpolate(double t,
Quaternion q,
RVector3d w)
interpolate in interface Trajectoryt - timeq - the quaternion at time tw - the angular velocity at time t
public void interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp,
Quaternion q,
RVector3d w)
interpolate in interface Trajectoryt - the timep - the position at time tpp - the velocity at time tppp - the acceleration at time tq - the quaternion at time tw - the angular velocity at time tTrajectory.getError()
public void interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp,
Quaternion q,
RVector3d w,
RVector3d wp)
interpolate in interface Trajectoryt - the timep - the position at time tpp - the velocity at time tppp - the acceleration at time tq - the quaternion at time tw - the angular velocity at time twp - the angular acceleration at time tTrajectory.getError()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||