Regular API function

simInterpolatePoses / sim.interpolatePoses

Description Computes the interpolated pose between poseIn1 and poseIn2. See also the section about positions, orientations and transformations
C/C++
synopsis
simInt simInterpolatePoses(const simFloat* poseIn1,const simFloat* poseIn2,simFloat interpolFactor,simFloat* poseOut)
C/C++
parameters
poseIn1: the first input pose
poseIn2: the second input pose
interpolFactor: the interpolation factor, a value between 0.0 and 1.0 (0.0--> poseOut=poseIn1, 1.0--> poseOut=poseIn2)
poseOut: the output pose (the result of the interpolation).
C/C++
return value
-1 if operation was not successful
Lua
synopsis
float[7] resultPose=sim.interpolatePoses(float[7] poseIn1,float[7] poseIn2,float interpolFactor)
Lua
parameters
poseIn1: the first input pose (a table containing 7 values)
poseIn2: the second input pose (a table containing 7 values)
interpolFactor: the interpolation factor, a value between 0.0 and 1.0 (0.0--> resultPose=poseIn1, 1.0--> resultPose=poseIn2)
Lua
return values
resultPose: the result pose (a table containing 7 values)
Python
synopsis
list resultPose=sim.interpolatePoses(list poseIn1,list poseIn2,float interpolFactor)