|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType
com.kuka.roboticsAPI.controllerModel.sunrise.mapping.SplineData
public class SplineData
Class responsible for serializing spline parameters for Sunrise. Only for SplineMotionModule.
| Constructor Summary | |
|---|---|
SplineData(SplineMotion<?> spline,
SunriseMappingToken info,
Robot robot,
com.kuka.common.params.ParameterSet commandParams,
AbstractFrame taskFrame)
Creates an instance of the class. |
|
| Method Summary | |
|---|---|
ISerializableType |
clone()
Creates a copy of this serializable type. |
void |
fromByteBuffer(FastByteBuffer buffer,
int startIndex)
Deserializes a type from a byte buffer. |
void |
fromString(String value)
Deserializes the type from a String representation. |
double |
getBlendCart()
|
double |
getBlendOri()
|
double |
getBlendRelative()
|
double[] |
getCartProfile()
Gets a copy of the cartProfile for the spline. |
int[] |
getDimensions()
Gets the 4-dimensional integer array describing the order of this type in each of the four possible dimensions. |
double[] |
getJointVelocity()
|
int |
getLength()
Gets the length in bytes of this type. |
double[] |
getLoadData()
|
MessageParameterType |
getParameterType()
Gets the message type identifier of the type. |
double[] |
getSplineBase()
|
double[] |
getToolOffset()
|
TypeIdentifier |
getTypeIdentifier()
Gets the Sunrise type identifier of the type. |
Object |
getValue()
Gets the raw value of the serializable type. |
boolean |
hasSameDataAs(Object obj)
|
void |
setValue(Object value)
Sets the value for this type. |
int |
toByteBuffer(FastByteBuffer buffer,
int startIndex)
Serializes the type in a byte buffer. |
String |
toString()
|
| Methods inherited from class com.kuka.roboticsAPI.controllerModel.sunrise.connectionLib.SerializableType |
|---|
getParameterName, hasParameterNameSet, setParameterName |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SplineData(SplineMotion<?> spline,
SunriseMappingToken info,
Robot robot,
com.kuka.common.params.ParameterSet commandParams,
AbstractFrame taskFrame)
spline - Spline to generate the data object from.info - Mapping info.robot - Robot that should execute the spline.commandParams - combined command parameters.taskFrame - task frame for spline interpolation| Method Detail |
|---|
public final double[] getCartProfile()
public int toByteBuffer(FastByteBuffer buffer,
int startIndex)
buffer - The byte buffer to which the value should be serialized.startIndex - The start index for the serialization.
public void fromByteBuffer(FastByteBuffer buffer,
int startIndex)
buffer - The byte buffe from which the value should be deserialized.startIndex - The start index of the deserialization.public Object getValue()
public void setValue(Object value)
value - The value for this type. Must be compatible with the type. The
value should never be null. Each subclass must
check this.public MessageParameterType getParameterType()
public TypeIdentifier getTypeIdentifier()
public int getLength()
public int[] getDimensions()
public void fromString(String value)
value - The string representation for the type.public boolean hasSameDataAs(Object obj)
public ISerializableType clone()
clone in interface ISerializableTypeclone in class SerializableTypepublic String toString()
toString in class Objectpublic double getBlendRelative()
public double getBlendCart()
public double getBlendOri()
public double[] getJointVelocity()
public double[] getToolOffset()
public double[] getSplineBase()
public double[] getLoadData()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||