[ros-users] How can I load models from Google SketUp ????

Joan Oliver joan.oliver at pal-robotics.com
Wed Feb 9 14:45:34 UTC 2011


Hi Aaron,

Maybe SketchUp is exporting the model in mm. You can use the optional
scale<http://www.ros.org/wiki/urdf/XML/Link>parameter for meshes in
the URDF.

Hope this helps,
Joan


On Wed, Feb 9, 2011 at 1:30 PM, Aaron Martinez Romero <
aaronmartinezromero at gmail.com> wrote:

> yes, was problem of the route, now is working but I have now another
> problem with the dimension of the model:
>
> the model made in sketchup have the same dimension that the model from
> example urdf_tutorial, I mean length 0.6 meters and radios 0.2 meters.
>
> the base link:
>   <link name="base_link">
>     <visual>
>       <geometry>
>         <cylinder length="0.6" radius="0.2"/>
>       </geometry>
>       <material name="blue">
>         <color rgba="0 0 .8 1"/>
>       </material>
>     </visual>
>   </link>
>
> but in rviz I see a big cylinder much more bigger than the base_link.......
>
> http://dl.dropbox.com/u/2950889/tube.png
> http://dl.dropbox.com/u/2950889/sizeError.png
>
> http://dl.dropbox.com/u/2950889/tube.dae
> http://dl.dropbox.com/u/2950889/r2d2.urdf
>
> What am I doing bad?
>
>
> 2011/2/5 John Hsu <johnhsu at willowgarage.com>
>
> Hi Aaron,
>> Couple of questions.  Which COLLADA version is your dae file?  Can you
>> post your urdf file and the dae file?  Also, as a sanity check, try below
>> and make sure the file exists:
>>
>> ls `rospack find urdf_tutorial`/mymodel.dae
>>
>> hope this helps.
>> John
>>
>>
>> On Fri, Feb 4, 2011 at 3:44 AM, Aaron Martinez Romero <
>> aaronmartinezromero at gmail.com> wrote:
>>
>>> Hi everyone,
>>>
>>> Somebody know how can I load in my urdf a model from google sketup?? I am
>>> exporting the model in dae file, but I always obtain this error message:
>>>
>>> [ERROR] [1296819682.438922687]: Could not load resource
>>> [package://urdf_tutorial/mymodel.dae]: Collada:
>>> package://urdf_tutorial/mymodel.dae - Expected opening element
>>> [ERROR] [1296819682.439516423]: Could not load model
>>> 'package://urdf_tutorial/mymodel.dae' for link 'right_leg': OGRE
>>> EXCEPTION(6:FileNotFoundException): Cannot locate resource
>>> package://urdf_tutorial/mymodel.dae in resource group Autodetect or any
>>> other group. in ResourceGroupManager::openResource at
>>> /tmp/buildd/ros-cturtle-visualization-common-1.2.0/debian/ros-cturtle-visualization-common/opt/ros/cturtle/stacks/visualization_common/ogre/build/ogre_src_v1-7-1/OgreMain/src/OgreResourceGroupManager.cpp
>>> (line 753)
>>>
>>>
>>> If I use other model, like "<mesh
>>> filename="package://pr2_description/meshes/gripper_v0/l_finger.dae"/>"
>>> works.
>>>
>>> Best regards.
>>> --
>>> Atentamente,
>>> Aarón Martínez Romero
>>> Ingeniero en Informática
>>> Tlf: 600 283 349
>>> http://www.AaronMR.com
>>>
>>> _______________________________________________
>>> ros-users mailing list
>>> ros-users at code.ros.org
>>> https://code.ros.org/mailman/listinfo/ros-users
>>>
>>>
>>
>> _______________________________________________
>> ros-users mailing list
>> ros-users at code.ros.org
>> https://code.ros.org/mailman/listinfo/ros-users
>>
>>
>
>
> --
> Atentamente,
> Aarón Martínez Romero
> Ingeniero en Informática
> Tlf: 600 283 349
> http://www.AaronMR.com
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>
>


-- 
Joan Oliver Poyatos
Manipulation Department
Pal Robotics S.L.

Tel: +34.93.414.53.47
Fax: +34.93.209.11.09
C/ Pujades 77-79 4º 4ª 08005 Barcelona, Spain.
http://www.pal-robotics.com/


AVISO DE CONFIDENCIALIDAD: Este mensaje y sus documentos adjuntos, pueden
contener información privilegiada y/o confidencial que está dirigida
exclusivamente a su destinatario. Si usted recibe este mensaje y no es el
destinatario indicado, o el empleado encargado de su entrega a dicha
persona, por favor, notifíquelo inmediatamente y remita el mensaje original
a la dirección de correo electrónico indicada. Cualquier copia, uso o
distribución no autorizados de esta comunicación queda estrictamente
prohibida.

CONFIDENTIALITY NOTICE: This e-mail and the accompanying document(s) may
contain confidential information which is privileged and intended only for
the individual or entity to whom they are addressed.  If you are not the
intended recipient, you are hereby notified that any disclosure, copying,
distribution or use of this e-mail and/or accompanying document(s) is
strictly prohibited.  If you have received this e-mail in error, please
immediately notify the sender at the above e-mail address.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20110209/b156be19/attachment-0003.html>


More information about the ros-users mailing list