Detect if Target is out of WZ
Hello,
So I have a set World Zone:
PROC zone_output()
CONST pos corner1:=[300,-740,379];
CONST pos corner2:=[-300,478,-121];
WZBoxDef\Outside,volume,corner1,corner2;
WZLimSup\Stat,object,volume;
ENDPROC
I am sending the robot arbitrary targets via Sockets, and then sending a Move command. I am wanting to detect if the target I send is outside of the WZ before I send the Move command. Is this possible? If so, can someone point me in the right direction to get it working?
Thanks in advance for any help!
SM
So I have a set World Zone:
PROC zone_output()
CONST pos corner1:=[300,-740,379];
CONST pos corner2:=[-300,478,-121];
WZBoxDef\Outside,volume,corner1,corner2;
WZLimSup\Stat,object,volume;
ENDPROC
I am sending the robot arbitrary targets via Sockets, and then sending a Move command. I am wanting to detect if the target I send is outside of the WZ before I send the Move command. Is this possible? If so, can someone point me in the right direction to get it working?
Thanks in advance for any help!
SM
Tagged:
0
Comments
-
Something like this?
if ( (x < = 300) and (x > = -300) and (y < = 478) and (y > = -740) and (z < = 379) and (z > = -121) )
So if your points XYZ is within the volume the above if statement will be true?
/Pavel0 -
Excellent, not sure why I didn't think of that...
Thanks!
SM
0
Categories
- All Categories
- 5.5K RobotStudio
- 396 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 250 ScreenMaker
- 2.8K Robot Controller
- 316 IRC5
- 61 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 798 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 5 Job listings