Coder Social home page Coder Social logo

wpilib-network-tables-robopipe's Introduction

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"

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.