Class RLOGServer
java.lang.Object
org.littletonrobotics.junction.rlog.RLOGServer
- All Implemented Interfaces:
LogDataReceiver
Sends log data over a socket connection using the RLOG format.
-
Field Summary
Fields inherited from interface org.littletonrobotics.junction.LogDataReceiver
timestampKey -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new RLOGServer on the default port (5800).RLOGServer(int port) Creates a new RLOGServer. -
Method Summary
-
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:LogDataReceiverCalled before the logging system begins reporting data. This should be used to connect to files, find network devices, start threads, etc.- Specified by:
startin interfaceLogDataReceiver
-
end
public void end()Description copied from interface:LogDataReceiverCalled when the code shuts down cleanly. Note that this will NOT be called when the robot is powered off.- Specified by:
endin interfaceLogDataReceiver
-
putTable
Description copied from interface:LogDataReceiverCalled every loop cycle when a new table is complete. This data can be processed immediately or queued for later.- Specified by:
putTablein interfaceLogDataReceiver- Parameters:
table- A copy of the data to save.- Throws:
InterruptedException- If interrupted while processing.
-