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
simGetPathCtrlPoint
Re: simGetPathCtrlPoint
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:
The change will be available in next release (V3.2.0) scheduled to be out by the end of the month.
Cheers
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
Cheers