ros-industrial / robotiq

Robotiq packages (http://wiki.ros.org/robotiq)
BSD 2-Clause "Simplified" License
232 stars 382 forks source link

Malformed STL Warnings on S-Model gripper RViz Load #84

Open Kukanani opened 8 years ago

Kukanani commented 8 years ago

I receive the following warnings when loading the STL files for the S-model gripper:

[ WARN] The STL file 'package://robotiq_s_model_visualization/meshes/s-model_articulated/visual/link_0.STL' is malformed. It starts with the word 'solid', indicating that it's an ASCII STL file, but it does not contain the word 'endsolid' so it is either a malformed ASCII STL file or it is actually a binary STL file. Trying to interpret it as a binary STL file instead.
[ WARN] The STL file 'package://robotiq_s_model_visualization/meshes/s-model_articulated/visual/link_1.STL' is malformed. It starts with the word 'solid', indicating that it's an ASCII STL file, but it does not contain the word 'endsolid' so it is either a malformed ASCII STL file or it is actually a binary STL file. Trying to interpret it as a binary STL file instead.
[ WARN] The STL file 'package://robotiq_s_model_visualization/meshes/s-model_articulated/visual/link_2.STL' is malformed. It starts with the word 'solid', indicating that it's an ASCII STL file, but it does not contain the word 'endsolid' so it is either a malformed ASCII STL file or it is actually a binary STL file. Trying to interpret it as a binary STL file instead.
[ WARN] The STL file 'package://robotiq_s_model_visualization/meshes/s-model_articulated/visual/link_3.STL' is malformed. It starts with the word 'solid', indicating that it's an ASCII STL file, but it does not contain the word 'endsolid' so it is either a malformed ASCII STL file or it is actually a binary STL file. Trying to interpret it as a binary STL file instead.
[ WARN] The STL file 'package://robotiq_s_model_visualization/meshes/s-model_articulated/visual/palm.STL' is malformed. It starts with the word 'solid', indicating that it's an ASCII STL file, but it does not contain the word 'endsolid' so it is either a malformed ASCII STL file or it is actually a binary STL file. Trying to interpret it as a binary STL file instead.

I believe this is an easy fix, just open the files in MeshLab and re-save them.

ZhenshengLee commented 2 years ago

see this https://gist.github.com/awesomebytes/2595b1dc41831c804a4f