|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.deviceModel.JointPosition
public final class JointPosition
Defines a joint position with arbitrary joint values in radians.
| Constructor Summary | |
|---|---|
JointPosition(double... values)
Creates a new joint position with the given values in radians. |
|
JointPosition(int jointCount)
Creates a new joint position with the given joint count. |
|
JointPosition(JointPosition other)
Creates a new joint position as a copy of the given joint position. |
|
| Method Summary | |
|---|---|
boolean |
equals(Object obj)
|
double[] |
get()
Gets a joint values as a new double array with values in radians. |
double |
get(int index)
Gets a position value in radians of the axis with the specified (zero-based) index. |
double |
get(com.kuka.roboticsAPI.deviceModel.JointEnum joint)
Gets the position value for a specific joint in radians. |
int |
getAxisCount()
Gets the axis count. |
double[] |
getInternalArray()
Gets the reference to the backing double array containing the real values of the class in radians. |
int |
hashCode()
|
boolean |
isNearlyEqual(JointPosition other)
Returns true if the two joint positions are nearly equal. |
boolean |
isNearlyEqual(JointPosition other,
double epsilon)
Returns true if the two joint positions are nearly equal. |
void |
set(double... values)
Sets all values of the vector to the defined values in radians. |
void |
set(int index,
double value)
Sets a value to a specified new value in radians. |
void |
set(JointPosition otherValue)
Sets all values of the vector to the defined value in radians of the other vector. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JointPosition(double... values)
values - The values for the joint position in radians.public JointPosition(JointPosition other)
other - The other joint position.public JointPosition(int jointCount)
jointCount - The joint count. Must not be negative.| Method Detail |
|---|
public int getAxisCount()
public double[] get()
public double[] getInternalArray()
Note. Please use with caution!!!
Main Usage is currently: Side-Effect for the "RegisterForReturnValue" "SPR Update" "DFE" Functionality
public double get(com.kuka.roboticsAPI.deviceModel.JointEnum joint)
joint - The joint for which to query the position value.
public double get(int index)
index - The index (must be a valid axis index).
public void set(int index,
double value)
index - The index.value - The new value.public void set(double... values)
values - The new values in radians. Must have the same length as the
old values.public void set(JointPosition otherValue)
otherValue - The new value in radians. Must have the same length as the old
values.public boolean isNearlyEqual(JointPosition other)
other - the other joint values to compare to this one.
public boolean isNearlyEqual(JointPosition other,
double epsilon)
other - the other joint values to compare to this one.epsilon - Epsilon value.
public int hashCode()
hashCode in class Objectpublic boolean equals(Object obj)
equals in class Objectpublic String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||