Skip to content

Team4388/WPILib-Network-Tables-RoboPipe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

RoboPipe

Author: HFocus (Keenan D. Buckley)

RoboPipe is a java-based script that allows the user to pull SmartDashboard values into other custom software. The API uses .NET sockets and connects to the SmartDashboard using the Network Tables Libraries. RoboPipe will take a startup request and will send the requester a stream of the requested values.

For information on installing RoboPipe, see Installation. For information on creating a program to interact with RoboPipe, see Setup.

Installation

To install Robopipe, start by downloading the latest jar from the Releases page. Put it into its own folder so that the batch file it creates won't clutter up your files. Then, finish by either running RoboPipe.jar (opens socket on default port), or use the command line to open it with a specific port.

cd (Directory of RoboPipe)
java -jar RoboPipe.jar (Port Number)

Setup

Connecting to RoboPipe is as follows:

  • When RoboPipe starts, it attempts to connect to a server socket on the given port (default 4388).
  • RoboPipe communicates using UTF-8 encoded strings, so to communicate you will need to convert your messages into a string and then encode it into a UTF-8 byte array.
  • Once connected, send RoboPipe a comma separated string with the exact notation of the values you want to grab from SmartDashboard (a,b,c).

Then RoboPipe will enter into a loop that does the following:

  • Sends a comma separated response in the form of (a,b,c).
  • The user then sends back the 4 byte string "CONT" to get another value

When you want to close RoboPipe you can do so automatically by sending it "EXIT"