innovationOUtside / nbev3devsim

Ev3DevSim ipywidget in Jupyter notebooks
Apache License 2.0
5 stars 0 forks source link

Simulated robot configurator #11

Open psychemedia opened 4 years ago

psychemedia commented 4 years ago

At the moment, the robot can be (re)configured from a dialogue within the simulator.

Separate out the configurator eg into a configuration app in the notebook created from a magic, and/or allow the user to pass config details into the simulator from the code block magic?

psychemedia commented 4 years ago

The robot is configured according to a simple set-up script that defines:

The configuration can be updated via a pop-up window in the simulator.

The configurator in the simulator is a simple editor over the configuration Javascript object:

{
  "wheeldiameter": 56,
  "wheelSpacing": 180,
  "back": -120,
  "weight": "weightless",
  "sensor1": {
    "x": -20,
    "y": 30
  },
  "sensor2": {
    "x": 20,
    "y": 30
  },
  "ultrasonic": {
    "x": 0,
    "y": 20,
    "angle": 0
  }
}