simGetPathCtrlPoint

Requests or suggestions for new features
Post Reply
sneaker
Posts: 12
Joined: 11 Dec 2013, 22:21

simGetPathCtrlPoint

Post 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

coppelia
Site Admin
Posts: 10339
Joined: 14 Dec 2012, 00:25

Re: simGetPathCtrlPoint

Post 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

sneaker
Posts: 12
Joined: 11 Dec 2013, 22:21

Re: simGetPathCtrlPoint

Post by sneaker »

Awesome, thank you!!

Post Reply