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

reading parameters from json file

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

Choco93 gravatar image

Hello!

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
1

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

Comments

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

Question Tools

1 follower

Stats

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

Seen: 1,079 times

Last updated: Jan 21 '20