Open psychemedia opened 4 years ago
The robot is configured according to a simple set-up script that defines:
56
mm);180
mm);120
mm);weightless
);sensor1
, by default registered at location (-20
, 30
) from centre front of the robot ) and the right light sensor at (20, 30);0
, 20
) with angle 0
degrees relative to the front/back robot center-line).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
}
}
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?