Page 1 of 1

Error importing .obj mesh file

Posted: 28 Oct 2020, 06:34
by liux3604
Hi:
I have tried to manually import .obj mesh file downloaded from:
http://ycb-benchmarks.s3-website-us-eas ... zonaws.com

I get this error:
[sandboxScript:error] 27: stoi: no conversion (in function 'simAssimp.importShapes@simExtAssimp')
stack traceback:
[C]: in function 'importShapes'
.../coppeliaSim.app/Contents/MacOS/lua/simExtAssimp.lua:27: in function <.../coppeliaSim.app/Contents/MacOS/lua/simExtAssimp.lua:8>
[CoppeliaSim:error] External call to simCallScriptFunction failed (configUiData.onImport): Error in script function.

However if i were to import an obj file that is included with CoppeliaSim 4.1 package, this problem disappears.

Also there is no problem importing from .dae files downloaded from the same link above. Is this a bug only with the latest version of the software?

Re: Error importing .obj mesh file

Posted: 28 Oct 2020, 08:39
by coppelia
Hello,

can you point on the exact file that you are trying to import? What other files are there in the same folder?

Cheers

Re: Error importing .obj mesh file

Posted: 18 Nov 2020, 05:50
by liux3604
Hi sorry for the late reply. this is the link:

http://ycb-benchmarks.s3-website-us-eas ... le_16k.tgz

Re: Error importing .obj mesh file

Posted: 18 Nov 2020, 16:24
by coppelia
the compressed file includes data for 4 different formats: PLY, STL, DAE and OBJ. I can import all 4 fine with CoppeliaSim V4.1.0...

Cheers

Re: Error importing .obj mesh file

Posted: 03 Feb 2021, 13:19
by jak_a
I have actually the exact same problem with Ubuntu 20.04, Coppelia 4.1.0 and the YCB object dataset. I have used the .dae files for now, they can be imported without any problem.

Re: Error importing .obj mesh file

Posted: 05 Feb 2021, 09:03
by coppelia
Thanks for reporting this. CoppeliaSim is internally using the Assimp library, so this could be linked to it directly. i.e. CoppeliaSim is agnostic to the format, it just gets mesh data handed over from Assimp.

Cheers