How to pass array from .launch file to .xacro file?
Hi all. I want to set the origin of the joint between my base_link frame and world frame using parameters or arguments like:
<origin xyz="$(arg pose_trans)" rpy="$(arg pose_rot)" />
and the arguments pose_trans
and pose_rot
are defined in my launch file. But when passing the arguments from .launch file to .xacro file like:
<param name="robot_description" command="$(find xacro)/xacro --inorder
'$(find <pkg>)/urdf/<file>.urdf.xacro'
pose_trans:=$(arg pose_trans)
pose_rot:=$(arg pose_rot)" />
Then I got the error:
xacro: error: expected exactly one input file as argument
Is there a way to pass arrays from the .launch file to .xacro file? Or how to set a parameter in the .launch file to change origin
in .xacro file? Because I don't want to hardcode origin
in the .xacro file.
Thanks!