|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
com.kuka.roboticsAPI.motionModel.CommandDataSource
com.kuka.roboticsAPI.motionModel.velocityControlled.JointVelocityDataSource
public final class JointVelocityDataSource
Data source class for the VelocityControlledJointMotion movements. This class should be used to send velocity data to the controller during an active command.
The data source will throw events when it changes (observable).
| Method Summary | |
|---|---|
void |
getCommandedVelocities(double[] velocities)
Copies the current commanded velocities into the given array. |
protected void |
onSetDevice(Device device)
For subclasses. |
void |
reset()
Resets this data source. |
void |
setCommandedVelocities(double... velocities)
Sets new commanded velocities for the data source. |
void |
setCommandedVelocity(int joint,
double velocity)
Sets the specified velocity for the given joint. |
String |
toString()
|
| Methods inherited from class com.kuka.roboticsAPI.motionModel.CommandDataSource |
|---|
cancel, getDevice, isCancel, setDevice |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
protected void onSetDevice(Device device)
This happens during execution start.
onSetDevice in class CommandDataSourcedevice - The device that was set for this data source.public void getCommandedVelocities(double[] velocities)
The call can only be performed after the command was sent to the controller. Because before that point, the motion does not know the device on which it will run, so no joint count is available. The velocities array has length zero before this point
velocities - The array which will contain the commanded joint velocities.public void setCommandedVelocities(double... velocities)
No checks are performed because of performance reasons.
velocities - The new velocities for all joints. Values should be between -1
and 1.
public void setCommandedVelocity(int joint,
double velocity)
joint - The joint to set the velocityvelocity - The velocity to set. Value should be between -1 and 1. If
other values are used, they are trimmed to 1 (or -1).public String toString()
toString in class CommandDataSourcepublic void reset()
reset in class CommandDataSource
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||