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
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addMarlinListener
(MarlinListener editorPanel) void
getComponents
(List<JPanel> list) Build a Swing Component that represents this Node.getIcon()
Set a custom icon for this node.boolean
void
seeNetworkSessionEvent
for flagsvoid
removeMarlinListener
(MarlinListener editorPanel) void
Send 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:SessionLayerListener
seeNetworkSessionEvent
for flags- Specified by:
networkSessionEvent
in interfaceSessionLayerListener
- Parameters:
evt
-
-
getComponents
Description copied from class:Node
Build a Swing Component that represents this Node.- Overrides:
getComponents
in 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
Description copied from class:Node
Set a custom icon for this node. -
isConnected
public boolean isConnected()
-