Gazebo | Ignition | Community
Ask Your Question

Cylinder parameters: elements or attributes

asked 2016-03-11 06:04:29 -0500

In the cylinder SDF specification, the radius and length of a cylinder are children elements, as the example in that website shows:


However, in Gazebo5 this throws the error:

[ERROR] [1457697849.467197389]: Cylinder shape must have both length and radius attributes

Therefore, it looks like Gazebo 5 requires those values as attributes:

    <cylinder length="1.2" radius="1"/>

And this works OK. Which one is correct? Is it a Gazebo bug?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2016-03-11 11:52:50 -0500

chapulina gravatar image

This error doesn't seem to be coming from Gazebo, Gazebo's errors start with [Err].

Are you sure you're not using URDF instead of SDF? In URDF, radius and length would be attributes.

edit flag offensive delete link more


Oops you are right! I am using URDF.

Javi V gravatar imageJavi V ( 2016-03-14 02:54:10 -0500 )edit
Login/Signup to Answer

Question Tools

1 follower


Asked: 2016-03-11 06:04:29 -0500

Seen: 1,927 times

Last updated: Mar 11 '16