Skip to content

Map using in simulator

Dmitry Ivanov edited this page Oct 2, 2020 · 1 revision

Interaction with map takes place in https://github.com/duckietown/gym-duckietown/blob/master/gym_duckietown/simulator.py

  1. _load_objects: https://github.com/duckietown/gym-duckietown/blob/e8eef3f53df304aefa9bc0bd4aca175b41ee76d7/gym_duckietown/simulator.py#L611

    • use:
      • kind (use for meshes)
      • pos
      • rotate
      • height/scale
      • static
        • if static == True
          • if kind == trafficlight -> TrafficLightObj
          • else -> WorldObj
        • else -> DuckieObj
  2. _interpret_map: https://github.com/duckietown/gym-duckietown/blob/e8eef3f53df304aefa9bc0bd4aca175b41ee76d7/gym_duckietown/simulator.py#L542

    • use for tile:
      • skip empty
      • calc angle

    are the types of tiles used here? (A/B/C/D )

  3. ? _get_curve: https://github.com/duckietown/gym-duckietown/blob/e8eef3f53df304aefa9bc0bd4aca175b41ee76d7/gym_duckietown/simulator.py#L822

    • use
      • kind
      • angle

    Get the Bezier curve control points for a given tile

Clone this wiki locally