|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.kuka.roboticsAPI.controllerModel.sunrise.positionMastering.PositionMastering
public class PositionMastering
Class to perform the position mastering. Offers methods to trigger the mastering of specific joint, to get the sensor position, to set the new home position of the joint and to invalidate the current mastering.
| Field Summary | |
|---|---|
static String |
NO_TOOL_ID
ID that can be send to the position mastering SSR when no tool is used for mastering actions. |
| Constructor Summary | |
|---|---|
PositionMastering(ISunriseRequestService reqService,
Robot robot)
Creates an instance of this class. |
|
PositionMastering(Robot robot)
Creates an instance of this class. |
|
| Method Summary | |
|---|---|
void |
activateNotchDetection(int jointIndex)
Activate the recording of the mastering device and the recognition of the mastering notch (resetIpoHome and activateIpoHome). |
com.kuka.roboticsAPI.deviceModel.MasteringCheckResult |
checkMastering(int jointIndex,
String toolId,
com.kuka.roboticsAPI.deviceModel.MasteringMethod masteringMethod,
int mamesOffsetSign)
Checks the mastering and tool offset. |
Map<Integer,int[]> |
getCoupledJoints()
Returns for each joint an array with the corresponding coupled joints. |
com.kuka.roboticsAPI.deviceModel.MasteringDeviceState |
getMasteringDeviceState()
Uses the IpoHome interface to determine the state of the EMD electronic mastering device. |
PositionMasteringInfo |
getMasteringInfo(String toolId)
Returns the current complete state of the position mastering for all axes. |
boolean[] |
getMasteringStates()
Returns the current states of position mastering for the all axes/joints. |
PositionRange |
getPositionRangeState(int jointIndex)
Returns the current position range state. |
boolean |
isNotchDetected(int jointIndex)
Checks if the mastering notch has been detected. |
com.kuka.roboticsAPI.deviceModel.ToolOffsetValidity |
learnToolOffset(int jointIndex,
String toolId,
com.kuka.roboticsAPI.deviceModel.MasteringMethod masteringMethod,
int mamesOffsetSign)
Learns the tool offset and saves it under the given tool identifier if the returned toolOffsetValidity is not illegal (0). |
void |
masterPosition(int jointIndex,
String toolId,
com.kuka.roboticsAPI.deviceModel.MasteringMethod masteringMethod,
int mamesOffsetSign)
Performs the position mastering of the given axis. |
void |
resetNotchDetection(int jointIndex)
Resets the recording of the mastering device (resetIpoHome). |
void |
saveOnDevice()
Save the mastering data (encoder references and tool offsets) on the device. |
void |
setPosition(int jointIndex,
String toolId,
double newMotorPosition,
double newEncoderReference)
Sets the motor position and encoder reference values. |
void |
setStandardPositionControllerRequest(int jointIndex,
boolean isStandardPositionControllerRequested)
Sets the request for the standard position controller. |
ToolOffsetMemoryStatus |
setToolIds(String[] toolIds)
Receives a list with the toolIds of all configured tools, removes all entries in the cal file which are not contained in the received list, and returns the current and maximal possible number of tools with tool offsets in the cal file. |
void |
setToolOffset(int jointIndex,
String toolId,
double newToolOffset)
Sets the tool offset. |
void |
unmasterPosition(int jointIndex)
Invalidates the position of the given axis/joint. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String NO_TOOL_ID
| Constructor Detail |
|---|
public PositionMastering(Robot robot)
robot - The robot object for which to perform the mastering.
public PositionMastering(ISunriseRequestService reqService,
Robot robot)
robot - The robot object for which to perform the mastering.reqService - request service for SSR execution| Method Detail |
|---|
public Map<Integer,int[]> getCoupledJoints()
getCoupledJoints in interface IPositionMasteringpublic PositionMasteringInfo getMasteringInfo(String toolId)
getMasteringInfo in interface IPositionMasteringtoolId - the tool identifier ["NO_TOOL"|UUID], may be null (=="NO_TOOL")
public boolean[] getMasteringStates()
getMasteringStates in interface IPositionMasteringpublic void unmasterPosition(int jointIndex)
unmasterPosition in interface IPositionMasteringjointIndex - zero based index of the axis/joint
public PositionRange getPositionRangeState(int jointIndex)
throws PositionRangeException
getPositionRangeState in interface IPositionMasteringjointIndex - zero based index of the axis/joint
PositionRangeException - if something went wrongpublic com.kuka.roboticsAPI.deviceModel.MasteringDeviceState getMasteringDeviceState()
getMasteringDeviceState in interface IPositionMastering
public void setStandardPositionControllerRequest(int jointIndex,
boolean isStandardPositionControllerRequested)
setStandardPositionControllerRequest in interface IPositionMasteringjointIndex - zero based index of the axis/jointisStandardPositionControllerRequested - flag signaling the request for the standard position controllerpublic void resetNotchDetection(int jointIndex)
resetNotchDetection in interface IPositionMasteringjointIndex - zero based index of the axis/jointpublic void activateNotchDetection(int jointIndex)
activateNotchDetection in interface IPositionMasteringjointIndex - zero based index of the axis/jointpublic boolean isNotchDetected(int jointIndex)
isNotchDetected in interface IPositionMasteringjointIndex - zero based index of the axis/joint
true if the mastering position was found, otherwise false.public ToolOffsetMemoryStatus setToolIds(String[] toolIds)
setToolIds in interface IPositionMasteringtoolIds - an array with current tool ids
public void masterPosition(int jointIndex,
String toolId,
com.kuka.roboticsAPI.deviceModel.MasteringMethod masteringMethod,
int mamesOffsetSign)
masterPosition in interface IPositionMasteringjointIndex - zero based index of the axis/jointtoolId - tool identifier ["NO_TOOL"|UUID], may be null (=="NO_TOOL")masteringMethod - the used methodmamesOffsetSign - the mames offset sign
public com.kuka.roboticsAPI.deviceModel.ToolOffsetValidity learnToolOffset(int jointIndex,
String toolId,
com.kuka.roboticsAPI.deviceModel.MasteringMethod masteringMethod,
int mamesOffsetSign)
learnToolOffset in interface IPositionMasteringjointIndex - zero based index of the axis/jointtoolId - tool identifier [UUID]masteringMethod - the used methodmamesOffsetSign - the mames offset sign
public com.kuka.roboticsAPI.deviceModel.MasteringCheckResult checkMastering(int jointIndex,
String toolId,
com.kuka.roboticsAPI.deviceModel.MasteringMethod masteringMethod,
int mamesOffsetSign)
checkMastering in interface IPositionMasteringjointIndex - zero based index of the axis/jointtoolId - tool identifier ["NO_TOOL"|UUID], may be null (=="NO_TOOL")masteringMethod - the used methodmamesOffsetSign - the mames offset sign
public void setPosition(int jointIndex,
String toolId,
double newMotorPosition,
double newEncoderReference)
setPosition in interface IPositionMasteringjointIndex - zero based index of the axis/jointtoolId - tool identifier ["NO_TOOL"|UUID], may be null (=="NO_TOOL")newMotorPosition - the new motor positionnewEncoderReference - the new encoder reference
public void setToolOffset(int jointIndex,
String toolId,
double newToolOffset)
setToolOffset in interface IPositionMasteringjointIndex - zero based index of the axis/jointtoolId - tool identifier [UUID]newToolOffset - the new tool offsetpublic void saveOnDevice()
saveOnDevice in interface IPositionMastering
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||