Hello,
I have multiple robtargets in arrays and a string with the name of the target. How do I go about pulling out the first target from an array?
For example:
CONST jointtarget 0614_1550{161} := [
[[-14.724370, 27.791708, 41.837761, 92.336242, 87.393000, -131.890905], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]],
[[-14.724370, 27.791708, 41.837761, 92.336242, 87.393000, -131.890905], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]],
[[-14.724370, 27.791708, 41.837761, 92.336242, 87.393000, -131.890905], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]],
[[-14.724370, 27.791708, 41.837761, 92.336242, 87.393000, -131.890905], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]],
[[-14.724370, 27.791708, 41.837761, 92.336242, 87.393000, -131.890905], [9E9, 9E9, 9E9, 9E9, 9E9, 9E9]]]
VAR string sCurrentTarget = “0614_1550”;
VAR jointtarget jCurrentTarget;
I tried GetDataVal but the command doesn’t seem to be able to access data from an array. How do i go about doing this?