ros2 / launch

Tools for launching multiple processes and for writing tests involving multiple processes.
Apache License 2.0
124 stars 139 forks source link

Capture the environment variables in TimerAction #728

Open sjdalessandro opened 1 year ago

sjdalessandro commented 1 year ago

This is a proposed solution for ros2/launch_ros#376

I've created a new action, ReplaceEnvironmentVariables, which keeps a copy of the environment variables present in the system when a TimerAction is executed. The system environment variables are then temporarily replaced by that copy before the scheduled actions are performed.

Feedback is welcome.