Page 1 of 1

Friction Parameters

Posted: 03 Apr 2022, 14:01
by adamg
Hi,

I am declaring friction values from a Python script using Vortex to an object in a scene , assigning them through the following code

I am just wondering how might I print out the values to ensure it is being correctly assigned in the material properties panel as this is not accessible during the simulation?

Thanks in advance

Re: Friction Parameters

Posted: 04 Apr 2022, 12:11
by coppelia
Hello,

I can't find your code...

Cheers

Re: Friction Parameters

Posted: 04 Apr 2022, 17:23
by adamg
Sorry here is a snippet of the code

Code: Select all

sim.setEngineFloatParam(sim.vortex_body_primlinearaxisfriction,cube0,0,Friction)
Is it possible to print the value assigned in the material properties to the primary linear axis for example?

Re: Friction Parameters

Posted: 05 Apr 2022, 05:57
by coppelia
Simply use the sim.getEngineFloatParam function? e.g.:

Code: Select all

print(sim.getEngineFloatParam(sim.vortex_body_primlinearaxisfriction,cube0))
When setting that parameter, you have somehow 4 input parameters for the function, but only 3 are expected...

Cheers

Re: Friction Parameters

Posted: 05 Apr 2022, 10:24
by adamg
Thanks that must have been where my problem was stemming from !

Re: Friction Parameters

Posted: 05 Apr 2022, 12:32
by adamg
Does the sim.setObjectParam function not require 4 input parameters? (https://www.coppeliarobotics.com/helpFi ... tParam.htm)

I am trying to pick and place a cube in CoppeliaSim using both Aluminium gripper fingers and an aluminium cube, trying to investigate at which friction parameters the cube will be successfully pick and place using the Vortex Physics Engine, but it is currently failing to grasp the object? How can i configure this to successfully pick and place the object?

Re: Friction Parameters

Posted: 05 Apr 2022, 15:43
by coppelia
The c++ version of the sim.getEngineFloatParam function requires 4 parameters, the Lua/Python version only 3.

Not sure what gripper you are trying to use. Grippping/grasping is not always a simple task, and it depends a lot on the gripper and how it was modeled.

Cheers