robotpy / robotpy-websim

OBSOLETE: Experimental robot simulation html interface
6 stars 1 forks source link

Make config.json backwards compatible #42

Closed amorygalili closed 5 years ago

amorygalili commented 5 years ago

Right now the configuration looks like this:

{
    "websim": {
      "robot": {
        "width": 2,
        "height": 3,
        "startingX": 2,
        "startingY": 20,
        "startingAngle": 0
      }
    }
 }

When it should look like this:

{
    "websim": {
      "robot": {
        "w": 2,
        "h": 3,
        "starting_x": 2,
        "starting_y": 20,
        "starting_angle": 0
      }
    }
 }