ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Error in URDF file

asked 2014-02-08 20:49:31 -0600

seredin gravatar image

Hello all!

I try to build urdf model robot. End I have error message:

Invalid parameter "name" while expanding macro "bioloid_F10"

I use 2 files, head.xacro and head_hardware.xacro.

In head.xacro:

<include filename="$(find robot_description)/urdf/head_hardware.xacro" />

    <bioloid_F10 parent="bioloid_F4_head_10" name="head_tilt_bracket">
       <origin xyz="0 0 0" rpy="0 0 0"/>

In head_hardware.xacro

<macro name="bioloid_F10" params="parent number x_loc y_loc z_loc">

What is wrong?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2014-02-09 11:29:09 -0600

David Lu gravatar image

Name is not a parameter in your macro. The parameters in the macro must match the ones you pass into the usage of the macro.

edit flag offensive delete link more

Question Tools

1 follower


Asked: 2014-02-08 20:49:31 -0600

Seen: 891 times

Last updated: Feb 09 '14