Edit environmental variable with ROS2 python launch file
Hello, I want to edit a environmental variable using my ros2 python launch file. I launch mutiple nodes so setting it once is not an option, as the variable will have to change for each node. Is it possible to set in in the Node description?
test = Node(
package="test",
executable="test",
namespace=namespace,
name="test_node",
output="screen",
emulate_tty=True,
parameters=[params],
)
return LaunchDescription([
test
])