currentPos: the current configuration, i.e. the current linear/angular joint positions, one value for each DoF.
currentVel: the current velocity, one value for each DoF. Can be nil in which case a velocity vector of 0 is used.
currentAccel: the current acceleration, one value for each DoF. Can be nil in which case an acceleration vector of 0 is used.
maxVel: the maximum allowed velocity, one value for each DoF. If sim.ruckig_minvel is specified in flags, then maxVel should contain following values: {maxV_1, ..., maxV_n, minV_1, ..., minV_n}, i.e. 2x DoF values.
maxAccel: the maximum allowed acceleration, one value for each DoF. If sim.ruckig_minaccel is specified in flags, then maxAccel should contain following values: {maxA_1, ..., maxA_n, minA_1, ..., minA_n}, i.e. 2x DoF values.
maxJerk: the maximum allowed jerk, one value for each DoF.
targetPos: the desired target configuration, one value for each DoF.
targetVel: the desired target point velocity, one value for each DoF. Can be nil in which case a velocity vector of 0 is used.
callback: a callback function that will be called for each movement step. The arguments provided to the callback function are: currentConfig, currentVel, currentAccel, auxData.
auxData: random data that will be forwarded to the callback function.
cyclicJoints: a table of booleans indicating which joint is cyclic (for cyclic joints, the movement will always go in the direction that represents the shortest distance to the goal). Can be nil or omitted.
timeStep: the desired time step size. A value of 0 indicates that the current simulation time step will be used.
|