Is this a way to call xacro macro?
Hi everyone, I find some files in this source. And I want to fully understand this source. I found this line and I don't know if it is a way to use xacro macro. Because as far as I know that the way to use it is to declare xacro and then call it using the "xacro: (name of macro) " like the following xml
<xacro:macro name="pr2_caster" params="suffix *origin **content **anothercontent">
<joint name="caster_${suffix}_joint">
<axis xyz="0 0 1" />
</joint>
<link name="caster_${suffix}">
<xacro:insert_block name="origin" />
<xacro:insert_block name="content" />
<xacro:insert_block name="anothercontent" />
</link>
</xacro:macro>
<xacro:pr2_caster suffix="front_left">
<pose xyz="0 1 0" rpy="0 0 0" />
<container>
<color name="yellow"/>
<mass>0.1</mass>
</container>
<another>
<inertial>
<origin xyz="0 0 0.5" rpy="0 0 0"/>
<mass value="1"/>
<inertia ixx="100" ixy="0" ixz="0" iyy="100" iyz="0" izz="100" />
</inertial>
</another>
</xacro:pr2_caster>
But in my files, I see the author write like this
<xacro:macro name="sensor_kinect" params="parent">
<turtlebot_sim_3dsensor/>
</xacro:macro>
The turtlebot_sim_3dsensor is a macro define in another file, but I don't know if this is a way to call macro. I think it should be xacro:turtlebot_sim_3dsensor . And the file declaring this macro is not run, how the ROS know that there is this macro? Sorry for my english and I don't know why my code didn't displayed correctly