CoppeliaSim-VR-Toolbox icon indicating copy to clipboard operation
CoppeliaSim-VR-Toolbox copied to clipboard

[CoppeliaSim:error] External call to simCallScriptFunction failed (isRunning@HTC_VIVE): Failed calling script function.

Open lshachar opened this issue 3 years ago • 8 comments

Hi! First of all, great work, thank you so much!

I'm running into a small bug here, I get this error flooding CoppeliaSim's console window, while not running the simulation. The error stops once I'm running the simulation, and resumes once simulation is stopped. However, the VR simulation works just fine. (btw, I'm using WMR headset and controllers through SteamVR, so you can add WMR to the tested platforms if you wish.)

CoppeliaSim edu V 4.1.0 rev.1 64bit installed in the default folder (C:\Program Files\CoppeliaRobotics\CoppeliaSimEdu) (btw, you have the correct path written in copyToVREP.bat: SET vrepLocation=C:\Program Files\CoppeliaRobotics\CoppeliaSimEdu, but the readme.md is wrong: C:\Program Files\CoppeliaSim3\CoppeliaSim_PRO_EDU)

no debug.log file is being created in the VR interface folder, CoppeliaSim VR Toolbox 2.2

since the VR interface console window writes 'Simulation started' - seems like the vr interface must be getting correct values from isRunning function in HTC_VIVE.lua, so it could be that the bug is in coppeliaSim.

output from VR interface console window:

Trying to connect with V-REP ...

Connected to V-REP, clientID number : 0
Connected to V-REP port number : 19997
Wait for simulation start ...
Simulation started

Loaded geometry with handle 14 with 6 vertices and 2 faces vrep name : Plane Visibility layer : 1
    Added texture to shape
Loaded geometry with handle 16 with 984 vertices and 1988 faces vrep name : IRB4600_visible Visibility layer : 1
Loaded geometry with handle 19 with 2118 vertices and 4163 faces vrep name : IRB4600_link1_visible Visibility layer : 1
(...I removed similar 'Loaded geometry' lines before posting)

Number of objects loaded : 131
Added light, angle : 90.0027
Added light, angle : 90.0027
Added light, angle : 90.0027
Added light, angle : 90.0027
Everithing loaded succesfully
Connected to VREP path
fps: 96     Scale: 100%


Wait for simulation start ...

lshachar avatar Sep 27 '20 16:09 lshachar