java.lang.Object
com.marginallyclever.ro3.node.Node
com.marginallyclever.ro3.node.nodes.marlinrobot.MarlinRobot
All Implemented Interfaces:
SessionLayerListener
Direct Known Subclasses:
LinearStewartPlatform, MarlinRobotArm

public class MarlinRobot extends Node implements SessionLayerListener
MarlinRobot represents a robot with Marlin firmware installed.
  • Constructor Details

    • MarlinRobot

      public MarlinRobot()
    • MarlinRobot

      public MarlinRobot(String name)
  • Method Details

    • networkSessionEvent

      public void networkSessionEvent(SessionLayerEvent evt)
      Description copied from interface: SessionLayerListener
      see NetworkSessionEvent for flags
      Specified by:
      networkSessionEvent in interface SessionLayerListener
      Parameters:
      evt -
    • getComponents

      public void getComponents(List<JPanel> list)
      Description copied from class: Node
      Build a Swing Component that represents this Node.
      Overrides:
      getComponents in class Node
      Parameters:
      list - the list to add components to.
    • addMarlinListener

      public void addMarlinListener(MarlinListener editorPanel)
    • removeMarlinListener

      public void removeMarlinListener(MarlinListener editorPanel)
    • sendGCode

      public void sendGCode(String gcode)

      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

      public Icon getIcon()
      Description copied from class: Node
      Set a custom icon for this node.
      Overrides:
      getIcon in class Node
      Returns:
      the icon, or null if none.
    • isConnected

      public boolean isConnected()