|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.deviceModel.JointPositionBuilder
public class JointPositionBuilder
Builder class for creating / manipulating JointPosition instances.
| Constructor Summary | |
|---|---|
JointPositionBuilder(double... values)
Creates an instance of the JoinPositionBuilder given as a parameter an array of doubles. |
|
JointPositionBuilder(int length)
Creates an instance of the JoinPositionBuilder given as a parameter the length of the array that later models the JoinPosition. |
|
JointPositionBuilder(JointPosition jointPosition)
Creates an instance of the JoinPositionBuilder given as a parameter a JointPosition. |
|
| Method Summary | |
|---|---|
JointPosition |
build()
Builds the new instance of the JointPosition from the data of the builder. |
double |
get(int index)
Gets a position value in radians of the joint with the specified (zero-based) index. |
double |
get(com.kuka.roboticsAPI.deviceModel.JointEnum joint)
Gets the position value for a specific joint in radians. |
JointPositionBuilder |
set(int index,
double value)
Sets a value to a specified new value in radians. |
JointPositionBuilder |
set(com.kuka.roboticsAPI.deviceModel.JointEnum index,
double value)
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, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public JointPositionBuilder(JointPosition jointPosition)
jointPosition - the jointPositionpublic JointPositionBuilder(double... values)
values - the array of doubles that later will model the information of the jointPositionpublic JointPositionBuilder(int length)
length - The joint count. Must not be negative.| Method Detail |
|---|
public JointPositionBuilder set(int index,
double value)
index - The index.value - The new value.
public JointPositionBuilder set(com.kuka.roboticsAPI.deviceModel.JointEnum index,
double value)
index - the jointEnum that must be edited.value - The new value in radians. Must have the same length as the old values.
JointEnumpublic JointPosition build()
JointPosition from the data of the builder.
JointPositionpublic double get(com.kuka.roboticsAPI.deviceModel.JointEnum joint)
joint - The joint for which to query the position value.
JointEnumpublic double get(int index)
index - The index (must be a valid joint index).
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||