decimate selected shape crashes V-REP

Typically: "How do I... ", "How can I... " questions
Post Reply
e2718
Posts: 33
Joined: 15 Nov 2015, 05:39

decimate selected shape crashes V-REP

Post by e2718 »

Am running V-REP 3.5 right now. It crashes have tried importing all of the meshes in ~/cadfiles "decimate selected shape". Below is a sample output from importing redundantManipulator.stl as a mesh and trying to call "decimated selected shape". Has anyone encountered this error before and knows how to fix it?

Code: Select all

humanoid@humanoid-System-Product-Name:~/Documents/mtong/stl_files$ vrep_35
Using the default Lua library.
Loaded the video compression library.
Add-on script 'vrepAddOnScript-addOnScriptDemo.lua' was loaded.
QSplitter::setCollapsible: Index 0 out of range
Simulator launched.
Plugin 'MeshCalc': loading...
Plugin 'MeshCalc': load succeeded.
Plugin 'BlueZero': loading...
Plugin 'BlueZero': warning: replaced variable 'simB0'
Plugin 'BlueZero': load succeeded.
Plugin 'BubbleRob': loading...
Plugin 'BubbleRob': load succeeded.
Plugin 'Bwf': loading...
Plugin 'Bwf': load succeeded.
Plugin 'Collada': loading...
Plugin 'Collada': load succeeded.
Plugin 'ConvexDecompose': loading...
Plugin 'ConvexDecompose': load succeeded.
Plugin 'CustomUI': loading...
Plugin 'CustomUI': warning: replaced variable 'simUI'
Plugin 'CustomUI': load succeeded.
Plugin 'DynamicsBullet-2-78': loading...
Plugin 'DynamicsBullet-2-78': load succeeded.
Plugin 'DynamicsBullet-2-83': loading...
Plugin 'DynamicsBullet-2-83': load succeeded.
Plugin 'DynamicsNewton': loading...
Plugin 'DynamicsNewton': load succeeded.
Plugin 'DynamicsOde': loading...
Plugin 'DynamicsOde': load succeeded.
Plugin 'DynamicsVortex': loading...
Plugin 'DynamicsVortex': load succeeded.
Plugin 'ExternalRenderer': loading...
Plugin 'ExternalRenderer': load succeeded.
Plugin 'ICP': loading...
Plugin 'ICP': warning: replaced variable 'simICP'
Plugin 'ICP': load succeeded.
Plugin 'Image': loading...
Plugin 'Image': warning: replaced variable 'simIM'
Plugin 'Image': load succeeded.
Plugin 'K3': loading...
Plugin 'K3': load succeeded.
Plugin 'LuaCommander': loading...
Plugin 'LuaCommander': warning: replaced variable 'simLuaComm'
Plugin 'LuaCommander': load succeeded.
Plugin 'LuaRemoteApiClient': loading...
Plugin 'LuaRemoteApiClient': load succeeded.
Plugin 'Mtb': loading...
Plugin 'Mtb': load succeeded.
Plugin 'OMPL': loading...
Plugin 'OMPL': warning: replaced variable 'simOMPL'
Plugin 'OMPL': load succeeded.
Plugin 'OpenMesh': loading...
Plugin 'OpenMesh': load succeeded.
Plugin 'PovRay': loading...
Plugin 'PovRay': load succeeded.
Plugin 'Qhull': loading...
Plugin 'Qhull': load succeeded.
Plugin 'RRS1': loading...
Plugin 'RRS1': load succeeded.
Plugin 'ReflexxesTypeII': loading...
Plugin 'ReflexxesTypeII': load succeeded.
Plugin 'RemoteApi': loading...
Starting a remote API server on port 19997
Plugin 'RemoteApi': load succeeded.
Plugin 'RosInterface': loading...
ROS master is not running. Cannot start 'ROS' plugin.
Error with plugin 'RosInterface': load failed (failed initialization).
Plugin 'SDF': loading...
Plugin 'SDF': warning: replaced variable 'simSDF'
Plugin 'SDF': load succeeded.
Plugin 'SurfaceReconstruction': loading...
Plugin 'SurfaceReconstruction': warning: replaced variable 'simSurfRec'
Plugin 'SurfaceReconstruction': load succeeded.
Plugin 'Urdf': loading...
Plugin 'Urdf': load succeeded.
Plugin 'Vision': loading...
Plugin 'Vision': load succeeded.
Using the 'MeshCalc' plugin.
Generating a shape (0)... done.
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
PolyMeshT::add_face: complex vertex
Error: signal 11:
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_rep.so(_Z11_segHandleri+0x28)[0x7f51b3d6dc58]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7f51b7dd94b0]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libOpenMeshCore.so.3.3(_ZN8OpenMesh15TriConnectivity14is_collapse_okENS_14HalfedgeHandleE+0x1a)[0x7f517061897a]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_repExtOpenMesh.so(_ZN8OpenMesh9Decimater14BaseDecimaterTINS_20TriMesh_ArrayKernelTINS_13DefaultTraitsEEEE17is_collapse_legalERKNS0_13CollapseInfoTIS4_EE+0x65)[0x7f517085b425]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_repExtOpenMesh.so(_ZN8OpenMesh9Decimater10DecimaterTINS_20TriMesh_ArrayKernelTINS_13DefaultTraitsEEEE11heap_vertexENS_12VertexHandleE+0xea)[0x7f517085e49a]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_repExtOpenMesh.so(_ZN8OpenMesh9Decimater10DecimaterTINS_20TriMesh_ArrayKernelTINS_13DefaultTraitsEEEE17decimate_to_facesEmm+0x384)[0x7f517085ecf4]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_repExtOpenMesh.so(_Z7computePKfiPKiifRSt6vectorIfSaIfEERS3_IiSaIiEE+0x5ab)[0x7f51708562cb]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_repExtOpenMesh.so(v_repDecimateMesh+0x76)[0x7f5170856996]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_rep.so(_ZN16CPluginContainer13meshDecimatorEPv+0x15)[0x7f51b3f38145]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_rep.so(_ZN13CMeshRoutines16getDecimatedMeshERKSt6vectorIfSaIfEERKS0_IiSaIiEEfRS2_RS6_+0x10c)[0x7f51b3ea62dc]
Error: signal 11:
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libv_rep.so(_Z11_segHandleri+0x28)[0x7f51b3d6dc58]
/lib/x86_64-linux-gnu/libc.so.6(+0x354b0)[0x7f51b7dd94b0]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libQt5Core.so.5(_ZN6QMutex4lockEv+0x15)[0x7f51b87a70f5]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libQt5Gui.so.5(+0x340fce)[0x7f51b24fefce]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libQt5Gui.so.5(+0x33896f)[0x7f51b24f696f]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libQt5Gui.so.5(_ZN18QRasterPaintEngine11updateBrushERK6QBrush+0x87)[0x7f51b24f9c47]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libQt5Gui.so.5(_ZN18QRasterPaintEngine4fillERK11QVectorPathRK6QBrush+0x4e)[0x7f51b24fbbfe]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libQt5Gui.so.5(_ZN14QPaintEngineEx4drawERK11QVectorPath+0x55)[0x7f51b24e0195]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libQt5Gui.so.5(_ZN14QPaintEngineEx15drawRoundedRectERK6QRectFddN2Qt8SizeModeE+0x1fa)[0x7f51b24e15aa]
/home/humanoid/V-REP_PRO_EDU_V3_5_0_Linux/libQt5Gui.so.5(_ZN8QPainter15drawRoundedRectERK6QRectFddN2Qt8SizeModeE+0x3b)[0x7f51b250caab]
QMutex: destroying locked mutex
QMutex: destroying locked mutex

coppelia
Site Admin
Posts: 10336
Joined: 14 Dec 2012, 00:25

Re: decimate selected shape crashes V-REP

Post by coppelia »

Hello,

this problem is directly linked to the OpenMesh library used in the v_repExtOpenMesh plugin. You can either try to recompile the openMesh plugin with a newer version of the openMesh library, or simply slightly change the decimation amount.

Cheers

e2718
Posts: 33
Joined: 15 Nov 2015, 05:39

Re: decimate selected shape crashes V-REP

Post by e2718 »

In the Linux instructions theres it seems like you need to call make in the plugin directory. From the line

Code: Select all

Then place the generated "libOpenMeshCore.a" and "libOpenMeshTools.a" into this folder, then inside this folder type "make" to build the plugin.
However, there is no makefile in this folder. Could you please clarify the instructions? Thanks

fferri
Posts: 1193
Joined: 09 Sep 2013, 19:28

Re: decimate selected shape crashes V-REP

Post by fferri »

The plugin build system is based on Qt.

You need to adjust config.pri for specifying OpenMesh library path et similia, then run qmake to generate the makefile, then run make.

e2718
Posts: 33
Joined: 15 Nov 2015, 05:39

Re: decimate selected shape crashes V-REP

Post by e2718 »

Changed version of openmesh to 6.3. This seems to have fixed the issue.

Post Reply