Coder Social home page Coder Social logo

2019frcfieldsim's Introduction

2019frcFieldSim

Field visualization and real-time robot position tracking for FRC Deep Space

Installation

You'll need pynetworktables2js to use this.

  1. Install Python.
  2. Install the above package for Python. (pip install pynetworktables2js or the same with python -m pip should probably work)
  3. Download all these files and extract them (i/a) to some directory.
  4. In a terminal (e.g., Command Prompt), navigate to the directory containing this project and start the server using serve.cmd.

To just serve files without a robot, run serve.

To connect the server to your robot, run (for example) serve --robot 10.13.23.2 where the IP address is that of your roboRIO. You can edit the file to reflect your robot's address.

Non-Windows users, make an equivalent script or run the command yourself. Good luck.

Ooooor just edit the file with Notepad or something to show your robot's IP address and double-click to run. Whatever floats your boat.

  1. Open localhost:8888 or equivalent in your web browser of choice. (My testing is done in Chrome, and I will never test or support another browser [unless I am convinced that I should]. Stray from the light at your own risk.)

Good luck!

Features

  • Square moves where robot moves
  • Line goes where square goes
  • Colors!
  • Basically any pair of numbers on Network Tables can be used as coordinates for a thing, and any such thing can be traced. (Any number can also be used as a heading for said thing.)
  • You can specify dynamic width and height for things too

Stuff to configure!

  • Specify trackables and traceables in robot.js
  • index.html is the page that loads in your browser
  • field.css is the associated CSS

2019frcfieldsim's People

Contributors

juh2600 avatar

Watchers

James Cloos avatar

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.