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
Friction Parameters
Re: Friction Parameters
Hello,
I can't find your code...
Cheers
I can't find your code...
Cheers
Re: Friction Parameters
Sorry here is a snippet of the code
Is it possible to print the value assigned in the material properties to the primary linear axis for example?
Code: Select all
sim.setEngineFloatParam(sim.vortex_body_primlinearaxisfriction,cube0,0,Friction)
Re: Friction Parameters
Simply use the sim.getEngineFloatParam function? e.g.:
When setting that parameter, you have somehow 4 input parameters for the function, but only 3 are expected...
Cheers
Code: Select all
print(sim.getEngineFloatParam(sim.vortex_body_primlinearaxisfriction,cube0))
Cheers
Re: Friction Parameters
Thanks that must have been where my problem was stemming from !
Re: Friction Parameters
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?
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
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
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