ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

reading parameters from json file

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

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 -0500

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 -0500 )edit

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower


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

Seen: 721 times

Last updated: Jan 21 '20