Gazebo | Ignition | Community
Ask Your Question

why am I not able to use the argument value of a xacro under a gazebo tag?

asked 2022-05-16 04:19:54 -0500

pmuthu2s gravatar image

updated 2022-05-16 04:21:14 -0500

I'm just showing the relevant parts..

<robot xmlns:xacro="" name="xyz">
<xacro:arg name="robot_names" default="robot_1"/>

    <plugin name="object_controller" filename="">

      <robotNamespace><remapping>/tf:=tf</remapping>  </robotNamespace>
      <ros>    <remapping>/tf:=tf</remapping>    </ros>

      <!-- Set control loop update rate -->
      <!-- Set odom publish rate -->

      <!-- Set if odom required -->

      <!-- Frame IDs -->

      <!-- Set odom covariance -->

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2022-05-25 04:50:36 -0500

joe28965 gravatar image

For an argument, you need to call it using:

${arg robot_names}
edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower


Asked: 2022-05-16 04:19:54 -0500

Seen: 10 times

Last updated: May 25