nobonobo / rccargo

RC-Car Simulator
BSD 3-Clause "New" or "Revised" License
1 stars 0 forks source link
golang ode rc-car-simulator

rccargo

RC-Car Simulator

DEMO: https://rccargo.arukascloud.io

Build and Run

OS-X

brew install ode --with-shared --with-double-precision
go get -u github.com/ianremmler/ode
go get -u github.com/nobonobo/rccargo
cd $GOPATH/src/github.com/nobonobo/rccargo; rcccargo

Linux

go get -u github.com/ianremmler/ode
go get -u github.com/nobonobo/rccargo
cd $GOPATH/src/github.com/nobonobo/rccargo; rcccargo

Open Browser

open http://localhost:8080/

Frontend

Backend

Open Dynamics Engine

Site: http://www.ode.org

go-wrapper: https://github.com/ianremmler/ode

document: https://godoc.org/github.com/ianremmler/ode

Concept

coordinate system

GL: right-hand

world params

world parameters:

ode compositions

join and update sequence

  1. open brouwser assets/index.html
  2. ws connect to host/ws
  3. new vehicle add to world
  4. jsonrpc call "World.Update"
  5. World render by WebGL
  6. repeat to 4.