CoppeliaRobotics / simCHAI3D

CoppeliaSim plugin that offers an interface to the CHAI3D library
Other
2 stars 0 forks source link

attempt to call a nil value (global 'simExtCHAI3D_start') #1

Closed zhangm365 closed 3 years ago

zhangm365 commented 3 years ago

I copy the v_repExtCHAI3D.dll in V-REP( 64 bits ),and it can load "CHAI3D" plugin successful. But when I start the simulation,the error happen : [Pioneer_p3dx@childScript:error] [string "Pioneer_p3dx@childScript"]:33: attempt to call a nil value (global 'simExtCHAI3D_start') stack traceback: [string "Pioneer_p3dx@childScript"]:33: in function 'sim_code_function_to_run'


How to fix it?

Coppelia commented 3 years ago

Hello,

try to rename those CHAI functions from e.g. simExtCHAI3D_start to simCHAI3D.start

zhangm365 commented 3 years ago

Yes, I changed it to "simExtCHAI3D_start" to "simCHAI3D.start" in file ...\chai3d-3.2.0\modules\V-REP\src\v_repExtCHAI3D.cpp, but when I run the demo( 02-V-REP-Pioneer.ttt ) in the V-REP, it was the same error as follows: image

image

image

Coppelia commented 3 years ago

simCHAI3D, not simExtCHAI3D! Also, make sure the CHAI3D plugin was successfully loaded

zhangm365 commented 3 years ago

Yeah,the CHAI3D plugin is successfully loaded

image

But the same error :


image

Coppelia commented 3 years ago

Ok, so it seems you are compiling the plugin yourself. Are you using the correct plugin source? From your previous comment (_"Yes, I changed it to "simExtCHAI3D_start" to "simCHAI3D.start" in file ...\chai3d-3.2.0\modules\V-REP\src\vrepExtCHAI3D.cpp") it seems you are using a different source

Coppelia commented 3 years ago

Let's continue that discussion on the forum, as it seems you have posted there too

zhangm365 commented 3 years ago

Yeah, I have posted the bugs in the forum. Thank your help!