CoppeliaSimEdu(v4.2.0) CHAI3D plugin load success. But the demo "02-V-REP-Pioneer.ttt" is not work

Report crashes, strange behaviour, or apparent bugs
Post Reply
LeonDrx
Posts: 1
Joined: 26 Aug 2021, 13:49
Location: China,Tianjin,Nankai University
Contact:

CoppeliaSimEdu(v4.2.0) CHAI3D plugin load success. But the demo "02-V-REP-Pioneer.ttt" is not work

Post by LeonDrx »

OS : Win 10 (64bit)
compiler: Visual Studio 2015, Release x64.
CoppeliaSimEdu: V4.2.0( rev.5) 64bit
chai3d version:chai3d-3.2.0-multiplatform
Haptic Devices: Geomagic Touch
I compile the CHAI3D source code (chai3d-3.2.0-multiplatform) in VS2019, and copy the compiled files "v_repExtCHAI3D.dll" to CoppeliaSimEdu root folder(C:\Program Files\CoppeliaRobotics\CoppeliaSimEdu),the CHAI3D plugin can load success.
But when load the demo "02-V-REP-Pioneer.ttt" and start simulation, the error is as follows:33: attempt to index a nil value (global 'simCHAI3D')
stack traceback:
[string "Pioneer_p3dx@childScript"]:33: in function 'sim_code_function_to_run'
How to fix it?

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

Re: CoppeliaSimEdu(v4.2.0) CHAI3D plugin load success. But the demo "02-V-REP-Pioneer.ttt" is not work

Post by coppelia »

Hello,

if you type simCHAI3D in the commander window, and the result is nil, then that means that your plugin was not correctly loaded. You write
the CHAI3D plugin can load success
, but how can you tell?

Check the console window for plugin load status. You might have to make the console visible via the user settings first.

Additionally, CoppeliaSim plugins should be named simExtXXXX since CoppeliaSim V4.0.0, i.e. in your case that should be simExtCHAI3D.dll

Cheers

Post Reply