You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is not only useful for gazebo, but for other purposes. For example, when applying fastdds XML profiles through environment variables, you can use the following:
My team was struggling to understand the purpose of why we need to files to set up these variables, and it would have been easier to find the purpose of ament_environment_hooks if the documentation of this lived with the rest of ament cmake.
The text was updated successfully, but these errors were encountered:
Oooh, good catch @Ryanf55. This could save a lot of people a lot of time.
I'll see if I can't recruit a new contributor to take this on. The ROS GZ documentation gives a good high level overview.
I could almost see this landing in two spots, or at least landing as two sections that cross reference each other:
First, the ament_cmake documentation itself with specific documentation of the feature.
Second, a How-To guide with a title like, "How to Add Persistent Environment Variables to your ROS Workspace" or something like that to make it more obvious to the end-user.
I think it is non-obvious that this is a behavior that happens inside of ament_cmake. Naively, if I wanted this functionality, I would start grepping through setup.sh and start going down a rabbit hole.
In Ament CMake, there is no documentation of the
ament_environment_hooks
function.In gazebo, this is used to set environment variables up. There's two important files.
https://github.com/gazebosim/ros_gz_project_template/blob/55bea9ee564be6ac4ce76650abab3aa2ed18e0ee/ros_gz_example_gazebo/hooks/README.md?plain=1#L29
This is not only useful for gazebo, but for other purposes. For example, when applying fastdds XML profiles through environment variables, you can use the following:
my_pkg.dsv.in
my_pkg.sh.in
My team was struggling to understand the purpose of why we need to files to set up these variables, and it would have been easier to find the purpose of
ament_environment_hooks
if the documentation of this lived with the rest of ament cmake.The text was updated successfully, but these errors were encountered: