HI, STEVEN
I DON'T UNDERSTAND SOME VBScript
x = GetVariable("COG_X")
y = GetVariable("COG_Y")
cx = GetVariable("IMAGE_WIDTH") / 2 <--why it need to divide by 2
cy = GetVariable("IMAGE_HEIGHT") / 2 <--why it need to divide by 2
xoff = GetVariable("IMAGE_WIDTH") / 8 <--why it need to divide by 8
yoff = GetVariable("IMAGE_HEIGHT") / 16 <--why it need to divide by 16
if x < cx - xoff then <--what does it mean?
if y < cy - yoff then
move = "pivot left"
else
move = "left"
end if
elseif x > cx + xoff then
if y < cy - yoff then
move = "pivot right"
else
move = "right"
end if
else
if y < cy - yoff then <--what does it mean?
move = "backup"
else
move = "straight"
end if
end if
SetVariable "move", move
If you have any questions/issues about RoboRealm or image processing this is your chance to ask a question.
Your question and any responses will be posted to the forum section of the website for others to read and learn from.
Note that any submission will be considered property of RoboRealm. If you do not wish your images to be
displayed as part of the RoboRealm site please do not submit those images.
Any submission may be removed from the website at the discretion of RoboRealm personnel.