innovationOUtside / nbev3devsim

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

Remote control #39

Open psychemedia opened 4 years ago

psychemedia commented 4 years ago

The original RobotLab had a simple remote control UI that allowed direct keyboard control over real and simulated robots.

The remote control activities provided a scaffolded way to teach about the operation and behaviour of the robot motor controls, as well as set up issues relating to repeatability, accuracy, etc.

At the moment, neither the original ev3devsim nor the extended nbev3devsim simulators support remote control or a remote control UI. Should they?

psychemedia commented 4 years ago

Early teaching material meeds a familiarisation activity that involves experimenting with MoveTank() and MoveSteering() speed and steering settings to get a feel for how to control the robot using them, observe or experiment what .on_for_rotations() results in, and so on. (Hmm... can we measure how far each wheel has turned?)

One approach might to be have a control panel in the simulator that allows us to create a motor config and then turn the simulator on/free run it. Another might be to have some magic that creates ipywidgets controlling the motor config and free runs the simulator, synching the ipywidget values into the sim.

I wonder if this could be done as part of a remote, eg where button presses can be used to run motors, (push to make) or motors cane be latched/toggled on an off (perhaps an upper case key to toggle on / off, a lower case key press to make?)