Regular API function

simSetJointTargetVelocity / sim.setJointTargetVelocity

Description Sets the target linear/angular velocity of a non-spherical joint. When in kinematic mode, the joint will move according to a motion profile that respects maximum acceleration and jerk values. In dynamic and velocity control mode, the controller is instructed about the desired velocity. See also sim.getJointTargetVelocity.
C/C++
synopsis
simInt simSetJointTargetVelocity(simInt objectHandle,simFloat targetVelocity)
C/C++
parameters
objectHandle: handle of the joint object
targetVelocity: target velocity of the joint
C/C++
return value
-1 if operation was not successful
Lua
synopsis
sim.setJointTargetVelocity(int objectHandle,float targetVelocity,float[] motionParams={})
Lua
parameters
objectHandle: handle of the joint object
targetVelocity: target velocity of the joint
motionParams: when the joint is in kinematic mode: the maximum allowed acceleration and jerk. When in dynamic mode with motion profile control enabled: the maximum allowed acceleration and jerk. Can be nil for default values. See also sim.getObjectFloatParam and sim.jointfloatparam_maxvel and sim.jointfloatparam_maxjerk
Lua
return values
Python
synopsis
sim.setJointTargetVelocity(int objectHandle,float targetVelocity,float[] motionParams=[])