Is it possible to check if a shape is in the work envelope of a robot?
Mechie
✭
I know how use the world zone command to create a sphere or a box, but I don't know how to check if a world volume is within the work envelope of my robot.
What I'm try to do is find the largest sphere that fit in the work envelope, not including the space behind the robot.
What I'm try to do is find the largest sphere that fit in the work envelope, not including the space behind the robot.
Tagged:
0
Comments
-
I've done some more research and world zones might not be right tool, but I still need to find largest sphere that will fit in the work envelope.0
-
Right-click on the robot in RobotStudio > Layout tab and choose "Show Work Envelope".
0 -
Is a command allows rapid to do that? I'm trying to come up with a rapid code that can check multiple shapes0
-
Hello,I use this function:
Calling this function, you can test if a robtarget is reachable and return robconf.<code>tCheck
\WObj:=<code>wCheck
\ErrorNumber:=enRes);
target:=CalcRobT(joint,<code>tCheck
\WObj:=<code>wCheck
);
pCheck.robconf:=target.robconf;
ELSE
joint:=CalcJointT(pCheck,<code>tCheck
\ErrorNumber:=enRes);
target:=CalcRobT(joint,<code>tCheck
);
pCheck.robconf:=target.robconf;
ENDIF
RETURN enRes=0;
!ERR_ROBLIMIT, ERR_OUTSIDE_REACH, ERR_WOBJ_MOVING
ERROR
IF (ERRNO = ERR_ROBLIMIT) OR (ERRNO = ERR_WOBJ_MOVING) RETURN FALSE;
ErrWrite\I, "IsReachable","Unmanaged Error:"\RL2:=ValToStr(ERRNO);
Stop;
ENDFUNC ! Test if a position is reachable<br> FUNC bool IsReachable(INOUT robtarget pCheck, PERS tooldata tCheck\ PERS wobjdata wCheck)<br> VAR jointtarget joint;<br> VAR robtarget target;<br> VAR errnum enRes;<br> <br> IF Present(wCheck) THEN<br> joint:=CalcJointT(pCheck,
So for you, you have to check each corner of your shape.
0
Categories
- All Categories
- 5.5K RobotStudio
- 394 UpFeed
- 18 Tutorials
- 13 RobotApps
- 297 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 249 ScreenMaker
- 2.7K Robot Controller
- 309 IRC5
- 59 OmniCore
- 7 RCS (Realistic Controller Simulation)
- 785 RAPID Programming
- AppStudio
- 3 RobotStudio AR Viewer
- 18 Wizard Easy Programming
- 105 Collaborative Robots
- 4 Job listings