Description
|
Retrieves the interval parameters of a joint. See also sim.setJointInterval.
|
C/C++ synopsis
|
simInt simGetJointInterval(simInt objectHandle,simBool* cyclic,simFloat* interval)
|
C/C++ parameters |
objectHandle: handle of the joint
cyclic: indicates whether the joint is cyclic (the joint varies between -pi and +pi in a cyclic manner)
interval: interval of the joint. interval[0] is the joint minimum allowed value, interval[1] is the joint range (the maximum allowed value is interval[0]+interval[1]). When the joint is "cyclic", then the interval parameters don't have any meaning.
|
C/C++ return value
|
-1 if operation was not successful
|
Lua synopsis
|
bool cyclic,float[2] interval=sim.getJointInterval(int objectHandle) |
Lua parameters |
objectHandle: handle of the joint
|
Lua return values
|
cyclic: indicates whether the joint is cyclic (the joint varies between -pi and +pi in a cyclic manner).
interval: interval of the joint. interval[1] is the joint minimum allowed value, interval[2] is the joint range (the maximum allowed value is interval[1]+interval[2]). When the joint is "cyclic", then the interval parameters don't have any meaning.
|
Python synopsis |
bool cyclic,list interval=sim.getJointInterval(int objectHandle) |