clearpathrobotics / clearpath_config

Clearpath Configuration YAML Parser
https://docs.clearpathrobotics.com/
BSD 3-Clause "New" or "Revised" License
9 stars 9 forks source link

Set environment variables through robot.yaml configuration file #70

Closed marco-ambrosio closed 2 months ago

marco-ambrosio commented 4 months ago

Describe the the feature you would like I think that a section of the robot.yaml to set custom environment variables could be extremely useful.

Other notes E.g. I was trying to play with the new fastdds configuration LARGE_DATA [1] but actuall I can not start the Husky nodes with the environment variable FASTDDS_BUILTIN_TRANSPORTS set to the correct value because the automatically generated scripts do not consider other environment variables to be exported at boot.

[1] https://docs.vulcanexus.org/en/latest/rst/use_cases/large_data/large_data.html?utm_source=linkedin&utm_medium=news&utm_campaign=largedata&utm_source=rosdiscourse&utm_medium=post&utm_campaign=largedataI

luis-camero commented 4 months ago

We will add this functionality.

However, in the meantime, you could use the workspaces tag to add a setup.bash file.

See the documentation here: https://docs.clearpathrobotics.com/docs/ros/config/yaml/system#ros-2-environment.

The file must be called setup.bash but it can be located anywhere in the system.

marco-ambrosio commented 4 months ago

Thank you!

I will try this method in the meanwhile

tonybaltovski commented 2 months ago

Closing since support was added. Please feel free to re-open if it is an issue.