Git Product home page Git Product logo

remotivelabs-protopie's Introduction

RemotiveLabs + Protopie

Use our RemotiveCloud together with Protopie and feed real vehicle signals into your prototype.

Read this blogpost for a good introduction https://www.protopie.io/blog/challenging-the-status-quo-in-automotive-prototyping

alt text

Try it out yourself

This solution requires Protopie-Connect which in turn requires a Protopie Pro or Enterprise plan.

Disclaimer: This is a fully functional but not yet officially released protopie-connect bridge-app


Here is a video that goes through each step in this README, its highly recommended to watch this video to get a better understanding of how it works. Show video with complete demo (6 min)

Prepare recording in RemotiveCloud

  1. Go to https://demo.remotivelabs.com and approve the captcha.
  2. Follow instructions to start a broker and play the recording to the broker.
  3. Finally press "Go to broker" to open our RemotiveBrokerApp from which you can control the recording being played.

Start connect bridge

The steps above must be performed before starting the bridge-app since we the bridge-app will try to connect to the cloud

Requires node 18.3 or higher

  1. Make sure that protopie-connect is up and running!

  2. Install deps

npm install
  1. Start bridge-app

Replace $BROKER_URL and $API_KEY below with the correct values found in RemotiveBrokerApp

node src/remotivelabs-bridge-app.js \
    --url $BROKER_URL \
    --api_key $API_KEY \
    --config samples/instrument-cluster-config.json

If you get this error you are using node < 18.3 so please update to a newer version.

TypeError: parseArgs is not a function

Play the recording

Once the bridge-app is running you can "play" the recording from the RemotiveBrokerApp. Simply press the play icon and you should see the progressbar moving. There should also be message visible in protopie-connect and in the terminal where the bridge-app was started. This means that the recording is being replayed properly. You can now control the recording with Play, Pause & Stop and also drag the progressbar back and forth to seek to specific place in the recording.

Run Pie

There are two bundled pies with this demo, one with only speed (car-integration-just-speed.pie) and a bigger instrument cluster with gear, steering wheel direction and more (car-integration-instrument-cluster.pie). Both works out-of-the-box so you can pick any of them or run both.

  • You should now see signals showing up in Protopie connect.
  • Add car-integration-just-speed.pie to ProtoPie connect and start it in web-browser.
  • That should be it!

Troubleshooting

Some common errors

Connect failures

  • Mostly, the reason is that there is no broker listening to the url you have provided. Please check the url of the broker again.
Failed to connect to broker
13 INTERNAL: Received RST_STREAM with code 0
  • Check your APP_KEY so that matches
Failed to connect to broker
2 UNKNOWN:
  • If you get this message directly when connecting its probably due to you are subscribing to a signal that does not exist
Subscription stream ended

Please do not hesitate to use our discussion/community forum for questions regarding this.

https://github.com/remotivelabs/remotivelabs-community/discussions

remotivelabs-protopie's People

Contributors

jrask avatar persigurdson avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  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.