Re: [ros-users] [rviz] Scale attribute of <mesh> tag ignored

Top Page
Attachments:
Message as email
+ (text/plain)
+ (text/html)
+ mesh_scale_fix.diff (text/x-patch)
Delete this message
Reply to this message
Author: Josh Faust
Date:  
To: ros-users
Subject: Re: [ros-users] [rviz] Scale attribute of <mesh> tag ignored
You're right, it's completely ignored. Can you try the attached patch?

Josh

2010/5/10 Adolfo Rodríguez Tsouroukdissian <>

> Hi all,
>
> I have a URDF file that specifies the scale attribute of a <mesh> tag. Upon
> displaying the geometry in rviz, the scale factor seems to be ignored.
> Gazebo, otoh, scales the mesh correctly. I'm using a vanilla boxturtle. Let
> me know if you need more details on this.
>
> TIA,
>
> Adolfo
>
> --
> Adolfo Rodríguez Tsouroukdissian, Ph. D.
>
> Robotics engineer
> PAL ROBOTICS S.L
> http://www.pal-robotics.com
> Tel. +34.93.414.53.47
> Fax.+34.93.209.11.09
> 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.
>
>
> ------------------------------------------------------------------------------
>
>
> _______________________________________________
> ros-users mailing list
>
> https://lists.sourceforge.net/lists/listinfo/ros-users
>
> _______________________________________________
> ros-users mailing list
>
> https://code.ros.org/mailman/listinfo/ros-users
>
>

Index: src/rviz/robot/robot_link.cpp
===================================================================
--- src/rviz/robot/robot_link.cpp    (revision 29409)
+++ src/rviz/robot/robot_link.cpp    (working copy)
@@ -331,6 +331,8 @@
     if ( mesh.filename.empty() )
       return;


+    scale = Ogre::Vector3(mesh.scale.x, mesh.scale.y, mesh.scale.z);
+
     std::string model_name = mesh.filename;
     loadMeshFromResource(model_name);