public class SimulationModeMachine extends ReferenceMachine
Modifier and Type | Class and Description |
---|---|
static class |
SimulationModeMachine.SimulationMode
The SimulationMode sets the level of simulation.
|
AbstractMachine.State
PropertySheetHolder.PropertySheet
fiducialLocator, mootionPlanner, motionPlanner, pnpJobProcessor
actuators, axes, cameras, discardLocation, drivers, executor, feeders, heads, listeners, nozzleTips, partAlignments, properties, signalers, speed, taskThread
propertyChangeSupport
DEFAULT_TASK_BUSY_TIMEOUT_MS
Constructor and Description |
---|
SimulationModeMachine() |
Modifier and Type | Method and Description |
---|---|
protected static AxesLocation |
applyHomingOffsets(Machine machine,
AxesLocation axesLocation,
AxesLocation mappedAxes,
Camera.Looking looking) |
void |
fireMachineActuatorActivity(Actuator actuator) |
protected org.openpnp.machine.reference.SimulationModeMachine.ActuatorHistory |
getActuatorHistory(Actuator lightActuator) |
Location |
getHomingError() |
static AxesLocation |
getMomentaryVector(SimulationModeMachine machine,
double cameraTime,
java.util.function.BiFunction<Motion,java.lang.Double,AxesLocation> function) |
PropertySheetHolder.PropertySheet[] |
getPropertySheets() |
double |
getSimulatedCameraLag() |
int |
getSimulatedCameraNoise() |
double |
getSimulatedNonSquarenessFactor() |
static Location |
getSimulatedPhysicalLocation(HeadMountable hm,
Camera.Looking looking,
boolean partRotation)
Simulates imperfections in the physical location of a HeadMountable.
|
Length |
getSimulatedRunout() |
double |
getSimulatedRunoutPhase() |
double |
getSimulatedVibrationAmplitude() |
double |
getSimulatedVibrationDuration() |
SimulationModeMachine.SimulationMode |
getSimulationMode() |
static SimulationModeMachine |
getSimulationModeMachine() |
boolean |
isPickAndPlaceChecking() |
void |
resetAllFeeders() |
void |
setEnabled(boolean enabled)
Attempts to bring the Machine to a ready state or attempts to immediately stop it depending
on the value of enabled.
|
void |
setHomingError(Location homingError) |
void |
setMachineTableZ(Length machineTableZ) |
void |
setPickAndPlaceChecking(boolean pickAndPlaceChecking) |
void |
setSimulatedCameraLag(double simulatedCameraLag) |
void |
setSimulatedCameraNoise(int simulatedCameraNoise) |
void |
setSimulatedNonSquarenessFactor(double simulatedNonSquarenessFactor) |
void |
setSimulatedRunout(Length simulatedRunout) |
void |
setSimulatedRunoutPhase(double simulatedRunoutPhase) |
void |
setSimulatedVibrationAmplitude(double simulatedVibrationAmplitude) |
void |
setSimulatedVibrationDuration(double simulatedVibrationDuration) |
void |
setSimulationMode(SimulationModeMachine.SimulationMode simulationMode) |
static void |
simulateActuate(Actuator actuator,
java.lang.Object value,
boolean realtime)
Simulates the Actuator.
|
static void |
simulateCameraExposure(Camera camera,
java.awt.Graphics2D gFrame,
int width,
int height) |
close, commit, findIssues, getCalibrationSolutions, getChildPropertySheetHolders, getCompatibleActuatorClasses, getCompatibleAxisClasses, getCompatibleCameraClasses, getCompatibleDriverClasses, getCompatibleFeederClasses, getCompatibleMotionPlannerClasses, getCompatibleNozzleClasses, getCompatibleSignalerClasses, getConfigurationWizard, getDefaultDriver, getFiducialLocator, getHomeAfterEnabled, getMotionPlanner, getPnpJobProcessor, getPropertySheetHolderActions, getPropertySheetHolderTitle, getSolutions, getUnsafeZRoamingDistance, getVisionSolutions, home, isAutoToolSelect, isEnabled, isHomed, isParkAfterHomed, isPoolScriptingEngines, isSafeZPark, registerFeederClass, setAutoToolSelect, setHomeAfterEnabled, setHomed, setMotionPlanner, setParkAfterHomed, setPoolScriptingEngines, setSafeZPark, setUnsafeZRoamingDistance
addActuator, addAxis, addCamera, addDriver, addFeeder, addHead, addListener, addNozzleTip, addSignaler, execute, fireMachineAboutToBeDisabled, fireMachineBusy, fireMachineDisabled, fireMachineDisableFailed, fireMachineEnabled, fireMachineEnableFailed, fireMachineHeadActivity, fireMachineHomed, fireMachineTargetedUserAction, getActuator, getActuatorByName, getActuators, getAllActuators, getAllCameras, getAxes, getAxis, getCamera, getCameras, getDefaultAxis, getDefaultHead, getDiscardLocation, getDriver, getDrivers, getFeeder, getFeederByName, getFeeders, getHead, getHeadByName, getHeads, getNozzleTip, getNozzleTipByName, getNozzleTips, getPartAlignments, getProperty, getPropertySheetHolderIcon, getSignaler, getSignalerByName, getSignalers, getSpeed, getTaskThread, isBusy, isTask, permutateActuator, permutateAxis, permutateCamera, permutateDriver, removeActuator, removeAxis, removeCamera, removeDriver, removeFeeder, removeListener, removeNozzleTip, removeSignaler, setDiscardLocation, setProperty, setSpeed, setTaskThread, submit, submit, submit, submit
addPropertyChangeListener, addPropertyChangeListener, fireIndexedPropertyChange, firePropertyChange, removePropertyChangeListener, removePropertyChangeListener
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
execute, execute, executeIfEnabled
getSubjectIcon, getSubjectText
public void setEnabled(boolean enabled) throws java.lang.Exception
Machine
setEnabled
in interface Machine
setEnabled
in class ReferenceMachine
java.lang.Exception
public PropertySheetHolder.PropertySheet[] getPropertySheets()
getPropertySheets
in interface PropertySheetHolder
getPropertySheets
in class ReferenceMachine
public SimulationModeMachine.SimulationMode getSimulationMode()
public void setSimulationMode(SimulationModeMachine.SimulationMode simulationMode)
public double getSimulatedNonSquarenessFactor()
public void setSimulatedNonSquarenessFactor(double simulatedNonSquarenessFactor)
public Length getSimulatedRunout()
public double getSimulatedRunoutPhase()
public void setSimulatedRunoutPhase(double simulatedRunoutPhase)
public void setSimulatedRunout(Length simulatedRunout)
public int getSimulatedCameraNoise()
public void setSimulatedCameraNoise(int simulatedCameraNoise)
public double getSimulatedCameraLag()
public void setSimulatedCameraLag(double simulatedCameraLag)
public double getSimulatedVibrationAmplitude()
public void setSimulatedVibrationAmplitude(double simulatedVibrationAmplitude)
public double getSimulatedVibrationDuration()
public void setSimulatedVibrationDuration(double simulatedVibrationDuration)
public Location getHomingError()
public void setHomingError(Location homingError)
public boolean isPickAndPlaceChecking()
public void setPickAndPlaceChecking(boolean pickAndPlaceChecking)
public void resetAllFeeders()
public void setMachineTableZ(Length machineTableZ)
public static SimulationModeMachine getSimulationModeMachine()
public static void simulateActuate(Actuator actuator, java.lang.Object value, boolean realtime) throws java.lang.Exception
actuator
- value
- realtime
- java.lang.Exception
public static Location getSimulatedPhysicalLocation(HeadMountable hm, Camera.Looking looking, boolean partRotation)
hm
- looking
- partRotation
- protected static AxesLocation applyHomingOffsets(Machine machine, AxesLocation axesLocation, AxesLocation mappedAxes, Camera.Looking looking) throws java.lang.Exception
java.lang.Exception
public static AxesLocation getMomentaryVector(SimulationModeMachine machine, double cameraTime, java.util.function.BiFunction<Motion,java.lang.Double,AxesLocation> function) throws java.lang.Exception
java.lang.Exception
public void fireMachineActuatorActivity(Actuator actuator)
fireMachineActuatorActivity
in class AbstractMachine
protected org.openpnp.machine.reference.SimulationModeMachine.ActuatorHistory getActuatorHistory(Actuator lightActuator)
public static void simulateCameraExposure(Camera camera, java.awt.Graphics2D gFrame, int width, int height)