Headless mode

Typically: "How do I... ", "How can I... " questions
Post Reply
furious
Posts: 4
Joined: 17 Mar 2017, 09:37

Headless mode

Post by furious » 05 Jun 2017, 16:04

Hello,

Vrep wont work in headless mode.

if i try

Code: Select all

vrep.exe -s - BorisSim2bandgen.ttt
vrep opens and starts.

but when i try using the headless mode

Code: Select all

vrep.exe -h -s - BorisSim2bandgen.ttt

Code: Select all

C:\Program Files\V-REP3\V-REP_PRO\Warning: QT_DEVICE_PIXEL_RATIO is deprecated. Instead use:
    QT_AUTO_SCREEN_SCALE_FACTOR to enable platform plugin controlled per-screen factors.
    QT_SCREEN_SCALE_FACTORS to set per-screen factors.
    QT_SCALE_FACTOR to set the application global scale factor.
Using the default Lua library.
License file 'v_rep':

Add-on script 'vrepAddOnScript-addOnScriptDemo.lua' was loaded.
Add-on script 'vrepAddOnScript-clsConveyor.lua' was loaded.
Add-on script 'vrepAddOnScript-clsConveyorPTS.lua' was loaded.
Add-on script 'vrepAddOnScript-clsGenerator.lua' was loaded.
Add-on script 'vrepAddOnScript-clsInfoBar.lua' was loaded.
Add-on script 'vrepAddOnScript-constants.lua' was loaded.
Add-on script 'vrepAddOnScript-dozenafvoerband wachttijd.lua' was loaded.
Add-on script 'vrepAddOnScript-dozenafvoerband.lua' was loaded.
Add-on script 'vrepAddOnScript-fnMath.lua' was loaded.
Add-on script 'vrepAddOnScript-fnTimer.lua' was loaded.
Add-on script 'vrepAddOnScript-handafraap.lua' was loaded.
Add-on script 'vrepAddOnScript-LIBDIR.lua' was loaded.
Add-on script 'vrepAddOnScript-mainfullcase1 backup.lua' was loaded.
Add-on script 'vrepAddOnScript-mainfullcase1.lua' was loaded.
Simulator launched.
Plugin 'MeshCalc': loading...
Plugin 'MeshCalc': load succeeded.
Plugin 'BubbleRob': loading...
Plugin 'BubbleRob': load succeeded.
Plugin 'Bwf': loading...
Plugin 'Bwf': load succeeded.
Plugin 'Cam': loading...
Plugin 'Cam': load succeeded.
Plugin 'CHAI3D': loading...
Plugin 'CHAI3D': load succeeded.
Plugin 'Collada': loading...
V-REP runs in headless mode. Cannot start 'Collada' plugin.
Plugin 'Collada': load failed (failed initialization).
Plugin 'ConvexDecompose': loading...
Plugin 'ConvexDecompose': load succeeded.
Plugin 'CustomUI': loading...
Initialization failed, running in headless mode. Cannot start 'CustomUI' plugin.
Plugin 'CustomUI': load failed (failed initialization).
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 'Joystick': loading...
Plugin 'Joystick': load succeeded.
Plugin 'K3': loading...
Plugin 'K3': load succeeded.
Plugin 'LuaRemoteApiClient': loading...
Plugin 'LuaRemoteApiClient': load succeeded.
Plugin 'Mtb': loading...
Plugin 'Mtb': load succeeded.
Plugin 'OMPL': loading...
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 'ReflexxesTypeII': loading...
Plugin 'ReflexxesTypeII': load succeeded.
Plugin 'RemoteApi': loading...
Starting a remote API server on port 19997
Plugin 'RemoteApi': load succeeded.
Plugin 'RRS1': loading...
Plugin 'RRS1': load succeeded.
Plugin 'SDF': loading...
Plugin 'SDF': load succeeded.
Plugin 'SimpleFilter': loading...
Plugin 'SimpleFilter': load succeeded.
Plugin 'SurfaceReconstruction': loading...
Plugin 'SurfaceReconstruction': load succeeded.
Plugin 'Urdf-a': loading...
Plugin 'Urdf-a': load succeeded.
Plugin 'Urdf': loading...
V-REP runs in headless mode. Cannot start 'Urdf' plugin.
Plugin 'Urdf': load failed (failed initialization).
Plugin 'Vision': loading...
Plugin 'Vision': load succeeded.
Plugin 'Wii': loading...
Plugin 'Wii': load succeeded.
Using the 'MeshCalc' plugin.
Initializing the Bullet physics engine in plugin 'DynamicsBullet_2_78'...
Engine version: 2.78
Plugin version: 9
Initialization successful.

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

Re: Headless mode

Post by fferri » 06 Jun 2017, 11:25

What do you mean with "won't work"?

The log you posted shows Initialization successful which suggests everything should be working fine.

furious
Posts: 4
Joined: 17 Mar 2017, 09:37

Re: Headless mode

Post by furious » 06 Jun 2017, 17:36

I Understand. i used

Code: Select all

redirectStatusbarMsgToConsoleInHeadlessMode = true
in the usrset and found the problem.


I want to speed u my simulation. Do i need to change the

Code: Select all

Time step
? who do i change it?

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

Re: Headless mode

Post by coppelia » 06 Jun 2017, 17:58

Hello,

those settings are part of a given scene. So edit the scene in the appropriate way (not in headless mode), save it. Then load it in headless mode.

Cheers

Post Reply