Re: [ros-users] Is there any way to implement a "for" loop w…

Forside
Vedhæftede filer:
Indlæg som e-mail
+ (text/plain)
Slet denne besked
Besvar denne besked
Skribent: User discussions
Dato:  
Til: User discussions
Emne: Re: [ros-users] Is there any way to implement a "for" loop with xacro?
Hi Patrick,

In order to keep xacro simple it does not support any looping mechanisms.

Since URDF files are just XML, you can generate them any number of
ways. Just generating the desired XML from any scripting language
(Python, Ruby, etc...) would be the simplest way. Generating the XML
using XSLT is also possible, though not necessarily recommended.

-Stu

On Sun, Oct 10, 2010 at 2:55 PM, Patrick Doyle <> wrote:
> If not, what would it take to add such a feature?
>
> Alternatively, is there any way to construct a world file or URDF that
> consisted of a uniform array (or matrix) of identical objects?
>
> --wpd
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>




--
Stuart Glaser
sglaser -at- willowgarage -dot- com
www.willowgarage.com