diff --git a/ros_web_api_bellande_step/launch/bellande_step_api_2d.launch.py b/ros_web_api_bellande_step/launch/bellande_step_api_2d.launch.py index b13fc23..3b3bdcc 100644 --- a/ros_web_api_bellande_step/launch/bellande_step_api_2d.launch.py +++ b/ros_web_api_bellande_step/launch/bellande_step_api_2d.launch.py @@ -1,6 +1,7 @@ import os import sys import subprocess +from launch import LaunchDescription from launch_ros.actions import Node from launch.actions import DeclareLaunchArgument from launch.substitutions import LaunchConfiguration @@ -11,7 +12,7 @@ def ros1_launch_description(): args = sys.argv[1:] # Construct the ROS 1 launch command - roslaunch_command = ["roslaunch", "ros_web_api_bellande_step", "bellande_step_api_2d.launch"] + args + roslaunch_command = ["roslaunch", "ros_web_api_bellande_step", "bellande_step_api_2d.py"] + args # Execute the launch command subprocess.call(roslaunch_command)