@staff In the below launch file to spawn URDF files into gazebo, what is the syntax for args? i understand that using args we are passing arguments into the node.
<?xml version="1.0" encoding="UTF-8"?>
<launch>
<arg name="x" default="0.0" />
<arg name="y" default="0.0" />
<arg name="z" default="0.0" />
<arg name="urdf_robot_file" default="" />
<arg name="robot_name" default="" />
<!-- This version was created due to some errors seen in the V1 that crashed Gazebo or went too slow in spawn -->
<!-- Load the URDF into the ROS Parameter Server -->
<param name="robot_description" command="cat $(arg urdf_robot_file)" />
<!-- Run a Python script to the send a service call to gazebo_ros to spawn a URDF robot -->
<node name="urdf_spawner" pkg="gazebo_ros" type="spawn_model" respawn="false" output="screen"
args="-urdf -x $(arg x) -y $(arg y) -z $(arg z) -model $(arg robot_name) -param robot_description"/>
</launch>
Question1: is it safe to say that the XML syntax is: -var value_of_var?
args="-urdf -x $(arg x) -y $(arg y) -z $(arg z) .......-var1 var1_value -var2 var2_value../>
Question 2: What is the connection between args and command-line terminal commands?
Feedback to @staff
It would have been great if the XML for launch file, which include the arg, args, rosparam etc were taught in the ROS Basics in 5 days course itself.