[ROS Q&A] 065 – YAML dump using C++

Written by Ruben Alves

23/11/2017

Here we show where the ROS Params are dumped when we use the “system()” function in C++ , as asked on this question: https://answers.ros.org/question/267467/yaml-dump-using-c/

Q: How do i dump my param values into a yaml file using C++? I tried system(“rosparam dump example.yaml”); but no luck..

A: ROS Params are dumped at the working directory unless you pass the /full/path/to/dump.yaml as argument, like: rosparam dump /full/path/to/dump.yaml

Topics:
Masterclass 2023 batch2 blog banner

Check Out These Related Posts

0 Comments

Submit a Comment

Your email address will not be published.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Pin It on Pinterest

Share This