[ros-users] [Discourse.ros.org] [Next Generation ROS] About …

Top Page
Attachments:
Message as email
+ (text/plain)
Delete this message
Reply to this message
Author: Zongpei Jiang via ros-users
Date:  
To: ros-users
CC: Zongpei Jiang
Subject: [ros-users] [Discourse.ros.org] [Next Generation ROS] About the configuration file in package


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.


If you do not want to receive messages from ros-users please use the unsubscribe link below. If you use the one above, you will stop all of ros-users from receiving updates.
______________________________________________________________________________
ros-users mailing list

http://lists.ros.org/mailman/listinfo/ros-users
Unsubscribe: <http://lists.ros.org/mailman//options/ros-users>