|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.robotics.engine.JRoboOp
javax.robotics.engine.trajectory.Spline
public class Spline
This class implements cubic spline interpolator.
Wrapper class for C++ library ROBOOP.
| Field Summary |
|---|
| Fields inherited from class javax.robotics.engine.JRoboOp |
|---|
ID, Version |
| Fields inherited from interface javax.robotics.engine.trajectory.Trajectory |
|---|
BAD_DATA, NOT_IN_RANGE |
| Constructor Summary | |
|---|---|
Spline()
Spline cubic path default constructor. |
|
Spline(java.io.File fileName)
Trajectory Spline Path constructor from XML file. |
|
Spline(java.io.InputStream fileName)
Trajectory Spline Path constructor from XML input stream. |
|
Spline(java.lang.String fileName)
Trajectory Spline Path constructor from XML file. |
|
Spline(java.net.URI uri)
Spline constructor with URI of xml file parameter. |
|
| Method Summary | |
|---|---|
short |
getError()
Gets error flag. |
short |
getID()
Gets Trajectory class ID. |
Matrix |
getOrientationData()
Gets the orientation data as matrix. |
Matrix |
getPositionData()
Gets the position data as matrix. |
pathML.PathConfigurationType |
getXmlHandler()
Gets the xml confguration handler of trajectory. |
double[] |
interpolate(double t)
Deprecated. |
void |
interpolate(double t,
Quaternion q,
RVector3d w)
Interpolates the spline at time t to set the quaternion and angular velocity. |
void |
interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp)
Interpolates the spline at time t to set the position, velocity and acceleration. |
void |
interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp,
Quaternion q,
RVector3d w)
Interpolates the spline at time t to set the position, velocity, acceleration, the quaternion and angular velocity. |
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 the spline 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 Spline()
public Spline(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 Spline(java.io.File fileName)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
fileName - file positions and/or orientation
java.io.IOException
org.apache.xmlbeans.XmlException
public Spline(java.lang.String fileName)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
fileName - file positions and/or orientation
java.io.IOException
org.apache.xmlbeans.XmlException
public Spline(java.io.InputStream fileName)
throws org.apache.xmlbeans.XmlException,
java.io.IOException
fileName - file positions and/or orientation
java.io.IOException
org.apache.xmlbeans.XmlException| Method Detail |
|---|
public final short getID()
getID in interface TrajectorygetID in class JRoboOppublic final short getError()
getError in interface Trajectoryinterpolate(double, RVector, RVector, RVector),
interpolate(double, Quaternion, RVector3d)public final pathML.PathConfigurationType getXmlHandler()
getXmlHandler in interface Trajectorypublic final Matrix getPositionData()
public final Matrix getOrientationData()
public void interpolate(double t,
RVector p,
RVector pp,
RVector ppp)
It modifies error flag.
interpolate in interface Trajectoryt - timep - the position at time tpp - the velocity at time tppp - the acceleration at time tgetError()
public void interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp)
interpolate in interface Trajectoryt - timep - the position at time tpp - the velocity at time tppp - the acceleration at time tgetError()
public void interpolate(double t,
Quaternion q,
RVector3d w)
Call C++ Spl_Quaternion method
quat_w(const Real time, Quaternion & q, ColumnVector &wd)
It modifies error flag.
interpolate in interface Trajectoryt - timeq - the quaternion at time tw - the angular velocity at time tgetError()
public void interpolate(double t,
RVector3d p,
RVector3d pp,
RVector3d ppp,
Quaternion q,
RVector3d w)
It modifies error flag.
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 tgetError()public double[] interpolate(double t)
interpolate in interface Trajectoryt - time
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 | ||||||||