Rust-based traffic editor for RMF

Overview

Traffic Editor III

Welcome to Traffic Editor III.

install stuff

Unfortunately we need a newer Rust than what comes with Ubuntu 20.04.

First make sure you don't have any distro-installed Rust stuff on your machine:

sudo apt remove rustc cargo

If you don't have it already, install rustup from the Rust website: https://www.rust-lang.org/tools/install

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Just select the normal defaults (option 1). A bunch of stuff will happen. Be sure to reload your ~/.bashrc afterwards or close and re-open your terminal.

Alternatively, if you already have a Rust installation managed by rustup, you can just do this to bring it up-to-date: rustup update

Next, install some dependencies and the source:

sudo apt install lld libxcb-shape0-dev libxcb-xfixes0-dev binaryen
git clone ssh://[email protected]/open-rmf/traffic_editor_iii
cd traffic_editor_iii
cargo build --release

Dependencies.... still figuring this out, and it's changing daily, but currently as siblings to this repo:

  • bevy from https://github.com/mrk-its/bevy on branch wgpu-0.11 only changes are to remove the local wgpu crates-io patch and the wgpu log filter in line 78 of crates/bevy_log/src/lib.rs to error to avoid debugging console text
  • bevy_egui from https://github.com/jakobhellermann/bevy_egui on branch bevy-pipelined with a few tweaks to Cargo.toml to point at the local bevy sibling path and add render to the feature list. Not sure if that is needed. Specifically drop in this line: bevy = { path = "../bevy", default-features = false, features = [

run stuff

cargo run --release

WASM stuff

Dependencies:

cargo install wasm-bindgen-cli
cargo install basic-http-server

At time of writing, the latest wgpu (v0.11) can support WebGL2. At time of writing, this requires the local clones and slight tweaks to the forks described above, but once this is setup, it's quite magical:

cargo build --target wasm32-unknown-unknown --release
wasm-bindgen --target web --out-dir web target/wasm32-unknown-unknown/release/libtraffic_editor_iii.wasm
cd web
basic-http-server . -a 127.0.0.1:1234
You might also like...
Lightning-fast and Powerful Code Editor written in Rust
Lightning-fast and Powerful Code Editor written in Rust

Lapce Lightning-fast and Powerful Code Editor written in Rust About Lapce is written in pure Rust, with UI in Druid. It's using Xi-Editor's Rope Scien

Ginkgo is a text editor built entirely in Rust
Ginkgo is a text editor built entirely in Rust

Ginkgo is a text editor built entirely in Rust. It supports cursor movements, CTRL commands, select vim commands, insert vs. normal modes, and more. Ginkgo is based on my text editor JED, which itself was based on the popular online editor Kilo.

A collision editor for Guilty Gear -Strive-, written in Rust
A collision editor for Guilty Gear -Strive-, written in Rust

ggst_collision_editor_rs A collision editor for Guilty Gear -Strive- and other Team Red Arc System Works games, written in Rust. Uses a customized ver

Helix - A kakoune / neovim inspired editor, written in Rust
Helix - A kakoune / neovim inspired editor, written in Rust

A kakoune / neovim inspired editor, written in Rust. The editing model is very heavily based on kakoune; during development I found myself agree

A pathtracer written in rust - runs in the web and includes an editor
A pathtracer written in rust - runs in the web and includes an editor

Webtracer A pathtracer written in rust - runs in the web and includes an editor Rendering is parallelized and utilizes all cpu cores You can easily ed

An opinionated modal editor to simplify code editing from the terminal
An opinionated modal editor to simplify code editing from the terminal

(I'm currently refactoring the platform layer. So we have to first finish this cleanup before we're able to continue adding features) An opinionated m

Aspiring vim-like text editor
Aspiring vim-like text editor

Rim Rim is an aspiring Vim-like text editor written in Rust. Current state Rim is in an early prototype stage. This means that you can load, edit and

A save editor for Mass Effect Trilogy
A save editor for Mass Effect Trilogy

Trilogy Save Editor A save editor for Mass Effect Trilogy A bit late but just in time ! This software is similar to Gibbed's save editors (and forks)

Rustpad is an efficient and minimal collaborative code editor, self-hosted, no database required
Rustpad is an efficient and minimal collaborative code editor, self-hosted, no database required

Rustpad is an efficient and minimal open-source collaborative text editor based on the operational transformation algorithm

Owner
null
TIF is a terminal_image_format. (theres no TIF editor, so i made TIF images through a hex editor lol)

Colors these are the colors you can use when displaying images on the terminal BYTES: 5A = BLUE 5B = BLACK 5C = RED 5D = GREEN 5E = PURPLE 5F = WHITE

buzz 5 Dec 23, 2022
A terminal-based text editor written in Rust

Iota Iota is a terminal-based text-editor written in Rust. Here's what it looks like right now, editing itself. Motivation Iota was born out of my fru

Greg Chapple 1.6k Jan 8, 2023
A simple terminal-based editor made in rust!

ELuna Editor The terminal-based editor for europa lang. Goals Be as minimal as possible, but retain conveniences found in other editors. Do not add fe

Junhao 3 May 25, 2022
An experimental next-generation Electron-based text editor

Attention: GitHub has decided not to move forward with any aspect of this project. We'll archive the repository in case anybody finds value here, but

Atom Archive 8.5k Dec 26, 2022
ReVi is a cross-platform terminal based Vim inspired text editor.

ReVi Table Of Contents: About Usage Install Clone && Installing Development Q&A KeyBindings Roadmap Changelog About ReVi is a cross-platform terminal

null 31 Sep 21, 2022
A text editor in ≤1024 lines of code, written in Rust

Kibi: A text editor in ≤1024 lines of code, written in Rust A configurable text editor with UTF-8 support, incremental search, syntax highlighting, li

Ilaï Deutel 881 Dec 29, 2022
An independent Rust text editor that runs in your terminal!

Ox editor Ox is a code editor that runs in your terminal. About The Project Ox is a code editor. It was written in Rust using ANSI escape sequences. I

null 2.9k Jan 2, 2023
A modern editor with a backend written in Rust.

Xi Editor (pronounced "Zigh") A modern editor with a backend written in Rust. Maintenance status: The xi-editor project is not currently under active

null 19.7k Jan 5, 2023
Web base text editor written in rust

Ultron Ultron is a web based monospace text-editor with syntax highlighting, completely written in rust. I wrote this code editor for my very specific

Jovansonlee Cesar 59 Aug 8, 2022
My own personal code editor built with Rust + OpenGL

Glyph This is my personal code editor that I am building for fun and to get more familiar with OpenGL. Glyph currently supports Vim keybinds, syntax h

Zack Radisic 83 Dec 23, 2022