You could also use:<br><br><param name="robot_description"<br>textfile="$(find learning_urdf)/my_urdf.xml" /><br><br><a href="http://www.ros.org/wiki/roslaunch/XML/param">http://www.ros.org/wiki/roslaunch/XML/param</a><br>
<br>Kevin<br><br><div class="gmail_quote">On Fri, Apr 30, 2010 at 6:09 AM, Adam Stambler <span dir="ltr"><<a href="mailto:adasta@gmail.com">adasta@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Hi,<br>
<br>
You need parenthesis around your find command.  the $( ..) triggers an<br>
escape for the launch file interpreter and tells it to execute the<br>
commands inside.  It should look something like this:<br>
<br>
<param name="robot_description"<br>
 command="cat $(find learning_urdf)/my_urdf.xml" /><br>
<br>
Good luck,<br>
<font color="#888888">Adam<br>
</font><div><div></div><div class="h5"><br>
On Fri, Apr 30, 2010 at 4:13 AM, shayan sengupta <<a href="mailto:shayanfennec@gmail.com">shayanfennec@gmail.com</a>> wrote:<br>
><br>
> hi<br>
><br>
> I have created an urdf package for my robot refering the urdf tutorials and its working as expected.I have included a visual tag to the top link of my robot so that i can visualize it on rviz.I tried creating a launch file using following set of instruction<br>

><br>
> <launch><br>
> <param name="robot_description" command="cat $(find packagename)/model.xml" /><br>
><br>
> </launch><br>
><br>
> but when i try to launch this file i get invalid parameter tag error<br>
><br>
><br>
> Invalid <param> tag: Cannot load command parameter [my_urdf.xml]: command [cat $learning_urdf/my_urdf.xml] returned with code [1].<br>
><br>
> Param xml is <param command="cat $learning_urdf/my_urdf.xml" name="my_urdf.xml"/><br>
><br>
><br>
> Actually I am not quite sure what give as a parameter name.<br>
><br>
> so if any one can suggest it would be a great help.<br>
><br>
> Regards,<br>
> Shayan Sengupta<br>
><br>
><br>
><br>
><br>
</div></div><div><div></div><div class="h5">> _______________________________________________<br>
> ros-users mailing list<br>
> <a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
> <a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
><br>
_______________________________________________<br>
ros-users mailing list<br>
<a href="mailto:ros-users@code.ros.org">ros-users@code.ros.org</a><br>
<a href="https://code.ros.org/mailman/listinfo/ros-users" target="_blank">https://code.ros.org/mailman/listinfo/ros-users</a><br>
</div></div></blockquote></div><br>