Class RLOGServer

java.lang.Object
org.littletonrobotics.junction.rlog.RLOGServer
All Implemented Interfaces:
LogDataReceiver

public class RLOGServer extends Object implements LogDataReceiver
Sends log data over a socket connection using the RLOG format.
  • Constructor Details

    • RLOGServer

      public RLOGServer()
      Creates a new RLOGServer on the default port (5800).
    • RLOGServer

      public RLOGServer(int port)
      Creates a new RLOGServer.
      Parameters:
      port - The port number.
  • Method Details

    • start

      public void start()
      Description copied from interface: LogDataReceiver
      Called before the logging system begins reporting data. This should be used to connect to files, find network devices, start threads, etc.
      Specified by:
      start in interface LogDataReceiver
    • end

      public void end()
      Description copied from interface: LogDataReceiver
      Called when the code shuts down cleanly. Note that this will NOT be called when the robot is powered off.
      Specified by:
      end in interface LogDataReceiver
    • putTable

      public void putTable(LogTable table) throws InterruptedException
      Description copied from interface: LogDataReceiver
      Called every loop cycle when a new table is complete. This data can be processed immediately or queued for later.
      Specified by:
      putTable in interface LogDataReceiver
      Parameters:
      table - A copy of the data to save.
      Throws:
      InterruptedException - If interrupted while processing.