Hi the construct,
xml and yaml launch file clear but when we look at the python launch file everything is not clear.Especially DeclareLaunchArgument,LogInfo(msg=launch.substitutions.LaunchConfiguration(‘msg_A’)),
arguments=[“-name_server”, “TestArgumentsDemo”,
“-timer_period_message”, launch.substitutions.LaunchConfiguration(‘msg_A’),
launch.substitutions.LaunchConfiguration(‘msg_B’),
“-timer_period”, launch.substitutions.LaunchConfiguration(‘timer_period’)
]
), turning_speed_f = LaunchConfiguration(‘turning_speed’)
Hi there!
I suggest you to check these two links if you wanna know more aobut launch files in ROS2:
https://docs.ros.org/en/humble/Tutorials/Beginner-CLI-Tools/Launching-Multiple-Nodes/Launching-Multiple-Nodes.html
https://docs.ros.org/en/humble/Tutorials/Intermediate/Launch/Launch-Main.html
About DeclareLaunchArgument, it is the equivalent of the tag arg in XML. It is used in ROS2 to set and declare launch arguments, enabling the customization of node behavior or parameters during execution.
Regards,
In addition to what @SylvainJnn shared, you can also have a look at our Intermediate ROS2 course, where launch files are discussed more in detail. Here’s a link to the course: Intermediate ROS2 course - hands-on | The Construct
This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.