Is it possible to check if a shape is in the work envelope of a robot?
Options
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.4K RobotStudio
- 383 UpFeed
- 14 Tutorials
- 12 RobotApps
- 291 PowerPacs
- 405 RobotStudio S4
- 1.8K Developer Tools
- 247 ScreenMaker
- 2.7K Robot Controller
- 279 IRC5
- 46 OmniCore
- 6 RCS (Realistic Controller Simulation)
- 3 RobotStudio AR Viewer
- 733 RAPID Programming
- 15 Wizard Easy Programming
- 105 Collaborative Robots
- 3 Job listings