kiwicampus / Turtlebot-Gazebo-Navigator

Robotics engineer hiring project
Apache License 2.0
2 stars 6 forks source link

path.yaml format maybe is wrong #3

Open jvech opened 1 year ago

jvech commented 1 year ago

The file path.yaml on tb_bringup has the form:

points:
  position:
    x: 0.1
    y: 0.2
  position:
    x: 0.4
    y: 0.8

Which represents i guess a list of pose positions, but the standard yaml states that: you must past a list of objects in the following form

points:
  - { position: {x: -1.9999998807907104, y: -0.39999985694885254 } }
  - { position: {x: -1.9715254540968772, y: -0.4179205420303447 } }
DanielPalominoS commented 1 year ago

I agree, seems to be a reported issue on pyyaml repository. As load returns a dictionary, repeated values are overwritten to avoid duplicated keys. Some suggest to override pyyaml load function as shown in link