Skip to content

A browser interface to create and edit JSON files containing paths for the sub.

Notifications You must be signed in to change notification settings

PalouseRobosub/trajectory-drawing

Repository files navigation

Trajectory Drawing

A browser interface to create and edit JSON files containing paths for the sub.

Getting Started

To get started, download the latest release for your platform. There are precompiled binaries for macOS, Windows, and Linux. Once downloaded, unpack the archive, optionally move the app to the same directory of your preexisting folder of paths, and launch the app. The app will automatically open localhost:8081 in your default browser.

Usage

The 3D viewport displays a set of axes, the outline of the pool, and any enabled trajectories.

Sidebar

The sidebar contains multiple menus, as well as the save button and indicator at the bottom left. A red dot indicates unsaved changes. Autosave can be enabled in the settings menu.

Loaded Trajectories

Displays a table of the .json files in the paths/ folder. Checkbox color corresponds to the color of the rendered line. Use the checkboxes to show/hide paths in the 3D viewport.

Pool Setup

Set the dimensions of the pool.

Trajectory Editor

After selecting a trajectory from dropdown, you can make edits to the waypoints, which will be displayed in realtime.

Obstacles

Add obstacles and other objects to the pool. Currently supported shapes are sphere, box, and cylinder.

Sub Model

Test

Choose to optionally display the model of Guppie, and which path it should follow.

Settings

Enable/disable autosave, and choose to show or hide waypoint labels, waypoint dots, and bezier gizmos.

Upcoming Features

  • Make the loaded trajectory menu look better (collapsing folders etc.)
  • poolsetup.json to save obstacles and pool options
  • Automatic collision warnings (path exits water etc.)
  • Sub model shows correct orientation
  • Create new trajectory file from browser
  • Sub follows path with play button

Math Stuff

  • 1 unit is scaled to 1 meter
  • Sub steps through trajectory at 1/5 unit (20cm) intervals

About

A browser interface to create and edit JSON files containing paths for the sub.

Resources

Stars

Watchers

Forks