ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

reading parameters from json file

asked 2020-01-21 07:20:45 -0600

Choco93 gravatar image


I wanted to know if there is a way to read parameters for my ros node from a json file, just like reading from a yaml file?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2020-01-21 08:30:54 -0600

gvdhoorn gravatar image

Have you tried it? JSON can be considered to be a subset of YAML, so a YAML parser should be able to parse a JSON file.

edit flag offensive delete link more


I thought it might be somehow different to read json, but works just like yaml. Thanks

Choco93 gravatar image Choco93  ( 2020-01-23 03:23:50 -0600 )edit

Question Tools

1 follower


Asked: 2020-01-21 07:20:45 -0600

Seen: 995 times

Last updated: Jan 21 '20