Description

Retrieves the interval parameters of a joint. See also sim.setJointInterval.

C synopsis

simInt simGetJointInterval(simInt objectHandle,simBool* cyclic,simFloat* interval)

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 return value

1 if operation was not successful. In a future release, a more differentiated return value might be available

Lua synopsis

boolean cyclic,table_2 interval=sim.getJointInterval(number 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). Is nil in case of an error.
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. Is nil in case of an error.
