Class MarlinRobot
java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.marlinrobot.MarlinRobot
- All Implemented Interfaces:
SessionLayerListener
- Direct Known Subclasses:
LinearStewartPlatform,MarlinRobotArm
MarlinRobot represents a robot with Marlin firmware installed.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddMarlinListener(MarlinListener editorPanel) voidgetComponents(List<JPanel> list) Build a Swing Component that represents this Node.getIcon()Set a custom icon for this node.booleanvoidseeNetworkSessionEventfor flagsvoidremoveMarlinListener(MarlinListener editorPanel) voidSend a single gcode command to the marlin robot.Methods inherited from class com.marginallyclever.ro3.node.Node
addAttachListener, addChild, addChild, addDetachListener, addReadyListener, addRenameListener, findByPath, findChild, findChild, findFirstChild, findFirstSibling, findNodeByID, findParent, findParent, fromJSON, getAbsolutePath, getChildren, getName, getParent, getRootNode, getUniqueID, hasParent, isNameUsedBySibling, removeAttachListener, removeChild, removeDetachListener, removeReadyListener, removeRenameListener, setName, toJSON, update, witnessProtection
-
Constructor Details
-
MarlinRobot
public MarlinRobot() -
MarlinRobot
-
-
Method Details
-
networkSessionEvent
Description copied from interface:SessionLayerListenerseeNetworkSessionEventfor flags- Specified by:
networkSessionEventin interfaceSessionLayerListener- Parameters:
evt-
-
getComponents
Description copied from class:NodeBuild a Swing Component that represents this Node.- Overrides:
getComponentsin classNode- Parameters:
list- the list to add components to.
-
addMarlinListener
-
removeMarlinListener
-
sendGCode
Send a single gcode command to the marlin robot. It will reply by firing a
MarlinListener.messageFromMarlin(java.lang.String)event with the String response.- Parameters:
gcode- GCode command
-
getIcon
-
isConnected
public boolean isConnected()
-