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

Error in URDF file

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

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"/>
    </bioloid_F10_fixed>

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
4

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

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

Stats

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

Seen: 906 times

Last updated: Feb 09 '14