[ROS2] Not able to use $(env <NAME> <DEFAULT>) in launch file [closed]

asked 2020-07-27 17:39:11 -0500

ahtsan gravatar image

updated 2020-07-27 23:35:57 -0500

I'm in ROS2 Dashing.

Is this already available? I tried it but when I run the launch file, it still can't run.

My launch file looks like

return launch.LaunchDescription([
    launch.actions.DeclareLaunchArgument(
        name='model',
        default_value='$(env TURTLEBOT3_MODEL burger)'
    ),

and I got this error

[ERROR] [launch]: Caught exception in launch (see debug for traceback): 'TURTLEBOT3_MODEL'

According to https://index.ros.org/doc/ros2/Tutori..., it's available but I can't get it working

edit retag flag offensive reopen merge delete

Closed for the following reason question is not relevant or outdated by ahtsan
close date 2020-07-28 13:25:12.692802