Gazebo | Ignition | Community
Ask Your Question
0

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:

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

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:

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

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
1

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

Comments

Oops you are right! I am using URDF.

Javi V gravatar imageJavi V ( 2016-03-14 02:54:10 -0500 )edit

Question Tools

1 follower

Stats

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

Seen: 3,302 times

Last updated: Mar 11 '16