The block seizes the specified robot for an agent (material item) and moves the end effector of the seized robot to the specified location.
If at the moment of the agent's request the robot is busy, the agent is placed into the internal queue of the block and waits there for the robot to become available. This block retrieves agents from the internal queue based on the FIFO rule (first-in, first-out).
Use the ReleaseRobot block to release the seized robot. All seized robots must be released before the agent (material item) is disposed.
- The robot that should be seized by the agent (material item).
Value type: Robot
Local variable: T agent - the agent (material item) - The time required by the robot to move its end effector to the specified location.
Value type: double
Local variable: T agent - the agent (material item) - Defines where the robot's end effector will be moved. The possible destinations are:
Agent - the current agent location
Node - the specified network node
Attractor - the specified attractor
Conveyor - the specified conveyor
Position on conveyor - the specified position on conveyor
(x, y, z) - the point with the specified coordinatesValue type: ProcessByRobot.DestinationType
Local variable: T agent - the agent (material item)
Valid values:
SeizeRobot.DEST_AGENT — Agent
SeizeRobot.DEST_NODE — Node
SeizeRobot.DEST_ATTRACTOR — Attractor
SeizeRobot.DEST_CONVEYOR — Conveyor
SeizeRobot.DEST_POSITION_ON_CONVEYOR — Position on conveyor
SeizeRobot.DEST_XYZ — (x, y, z) - [Visible and applies only if the Destination is is set to Node]
The network node the robot will move its end effector to. This value is evaluated right after the robot picks up the agent.Value type: Node
Local variable: T agent - the agent (material item) - [Visible and applies only if the Destination is is set to Attractor]
The attractor the robot will move its end effector to. This value is evaluated right after the robot picks up the agent.Value type: Attractor
Local variable: T agent - the agent (material item) - [Visible and applies only if the Destination is is set to Conveyor]
The conveyor the robot will move its end effector to. This value is evaluated right after the robot picks up the agent.Value type: ConveyorPath
Local variable: T agent - the agent (material item) - [Visible and applies only if the Destination is is set to Conveyor]
Defines how to calculate the offset of the exact point on a conveyor the robot will move its end effector to: either from The beginning of the conveyor, or from The end of the conveyor.Value type: boolean
Local variable: T agent - the agent (material item)
Default value: true — The beginning of the conveyor - [Visible and applies only if the Destination is is set to Conveyor]
The distance from the start or end point of the conveyor (depends on the Offset from parameter) defining the exact destination point for the robot's end effector. This value is evaluated right after the robot picks up the agent.Value type: double
Local variable: T agent - the agent (material item) - [Visible and applies only if the Destination is is set to Position on conveyor]
The position on conveyor the robot will move its end effector to. This value is evaluated right after the robot picks up the agent.Value type: PositionOnConveyor
Local variable: T agent - the agent (material item) - [Visible and applies only if the Destination is is set to (x, y, z)]
X, Y, Z coordinate of the point the robot will move its end effector to. This value is evaluated right after the robot picks up the agent.Value type: double
Local variable: T agent - the agent (material item) - Defines from which point the robot's end effector approaches the location/agent. The possible options are:
Top side - the robot approaches the location from above.
Nearest side - the robot approaches the location from the side, closest to the robot base.Value type: RobotApproachType
Local variable: T agent - the agent (material item)
Valid values:
ROBOT_APPROACH_TOP_SIDE — top side
ROBOT_APPROACH_NEAREST_SIDE — nearest side - The absolute minimum height for the robot. The robot's end effector may move only above the safe height level (e.g., to avoid obstacles).
Value type: double
Local variable: T agent - the current agent (material item)
Default value: 1 meter - Defines the priority of this task for the current agent (the larger the higher). The robot will serve agents with the highest priority first. If several agents have the same priority, they will be served in the order they have arrived in the block (FIFO, First In, First Out).
Value type: double
Local variable: T agent - the current agent (material item)
Default value: 0 - On enter
- Here you can type Java code that will be executed when the agent (material item) enters the block.
Local variable: T agent - the agent (material item)
- On seize
- Here you can type Java code that will be executed when the agent (material item) seizes the robot.
Local variables:
T agent - the agent (material item)
Robot robot - the robot seized by the agent - On exit
- Here you can type Java code that will be executed when the agent (material item) leaves the block.
Local variable: T agent - the agent (material item)
- On remove
- Here you can type Java code that will be executed when the agent (material item) is removed from this block with the remove() function.
Local variable: T agent - the agent (material item)
Function | Description |
---|---|
int size() | Returns the number of agents (material items) currently located in this block (either being processed by the robot, or waiting for it in the block's internal queue). |
T remove(Agent agent) |
Removes the specified agent (material item) from the block. If the robot is currently processing this agent at the moment the function is called, the robot will stop the processing and will switch to the next agent or "after operation" task. agent — the agent to remove |
boolean contains(Agent agent) |
Returns true if this block (including the block's internal queue containing the agents waiting for the robot) contains the specified agent (material item). agent — the agent to check |
double recalculatePriorities() | Recalculates the task priority (the expression specified in the Priority property) for all agents (material items) currently waiting for the robot in the internal queue of this block. |
- in
- The input port.
- out
- The output port.
-
How can we improve this article?
-