[ros-users] [Discourse.ros.org] [Next Generation ROS] About the configuration file in package

Zongpei Jiang ros.discourse at gmail.com
Tue May 8 09:04:33 UTC 2018



Hi !
I'm writing a package that needs to read a configuration file .
I use `install(FILES xxx.yaml DESTINATION share/${PROJECT_NAME})` to copy the configuration file to the path : `/shr/package-name`

But i have no good way to get the right path where the file stores and then read it 

i'm using the absolute path to read the file now but i want to make it relative so the package can be used in different environment .

looking forward to some suggestions !





---
[Visit Topic](https://discourse.ros.org/t/about-the-configuration-file-in-package/4728/1) or reply to this email to respond.




More information about the ros-users mailing list