Page 1 of 1

Getting the size of the wheels

Posted: 03 Sep 2013, 01:21
by rico
Hello,

How can I get the size of the wheels of a robot in the library?

Thank you very much in advance.

Rico

Re: Getting the size of the wheels

Posted: 03 Sep 2013, 01:23
by Eric
Hi!

To retrieve the diameter of one wheel of the Dr20 robot for example, use something like:

Code: Select all

wheelHandle=simGetObjectHandle('dr20_rightWheel_')
res,zMin=simGetObjectFloatParameter(wheelHandle,17)
res,zMax=simGetObjectFloatParameter(wheelHandle,20)
diameter=zMax-zMin