Page 1 of 1

simGetPathCtrlPoint

Posted: 11 Jan 2015, 22:37
by sneaker
Hello,

it would be nice to have a function to get the position and orientation of a certain control point on a path.

something like:
table_3 position,table_3 euler_angles=simGetPathCtrlPoint(number pathhandle, number index)

Background:
I import a path from a CAM software and then do collision check, robot reach check and postprocess each point to real robot code by writing to a file with lua.
If i use simGetPositionOnPath I have to set the steps very small to keep the accuracy of the path which results in a massive postprocessed file.

Regards

Re: simGetPathCtrlPoint

Posted: 11 Jan 2015, 23:48
by coppelia
Hello,

we have slightly modified the way the simGetPositionOnPath and simGetOrientationOnPath functions operate. If you need the position/orientation at the exact position of a path control point, specify following for the relativeDistance argument:

Code: Select all

relativeDistance=-ctrlPtIndex-1
The change will be available in next release (V3.2.0) scheduled to be out by the end of the month.

Cheers

Re: simGetPathCtrlPoint

Posted: 12 Jan 2015, 01:22
by sneaker
Awesome, thank you!!