Regular API function

simSetObjectPose / sim.setObjectPose

Description Sets the pose of an object. Dynamically simulated objects, together with their hierarchy tree, will be dynamically reset (this however does not apply to static shapes). See also the other matrix/transformation functions.
C/C++
synopsis
simInt simSetObjectPose(simInt objectHandle,simInt relativeToObjectHandle,const simFloat* pose)
C/C++
parameters
objectHandle: handle of the object. Can be combined with sim.handleflag_reljointbaseframe (see next argument)
relativeToObjectHandle: indicates relative to which reference frame the pose is specified. Specify -1 to set the absolute pose, sim.handle_parent to set the pose relative to the object's parent, or an object handle relative to whose reference frame the pose is specified. If this handle is the handle of a joint, then the pose is applied relative to the joint's moving frame (unless objectHandle is combined with sim.handleflag_reljointbaseframe, in which case the pose is applied relative to the joint's base frame).
pose: pointer to 7 values (x,y,z,qx,qy,qz,qw)
C/C++
return value
-1 if operation was not successful
Lua synopsis sim.setObjectPose(int objectHandle,int relativeToObjectHandle,float[7] pose)
Lua parameters
Similar to the C-function counterpart
Lua return values
Python synopsis sim.setObjectPose(int objectHandle,int relativeToObjectHandle,list pose)