Robotics StackExchange | Archived questions

Why is ROS2 parameter formatting unpythonic and does not use dict correctly?

Hi, Why are ROS2 parameters specified as

Node(
    parameters = [
        { "foo": 1 },
        { "bar": 2 },
    ],
    ...
)

instead of

Node(
    parameters = {
        "foo": 1,
        "bar": 2,
    },
    ...
)

like all other Python packages e.g. requests?

Asked by dheeranet on 2021-09-01 20:20:17 UTC

Comments

Please improve the title of your question. It's far too vague right now.

Asked by gvdhoorn on 2021-09-02 01:34:00 UTC

Answers