Palletizer | Open source palletizing tool | Runtime Evironment library
kandi X-RAY | Palletizer Summary
kandi X-RAY | Palletizer Summary
Open source palletizing tool to increase productivity for stacking totes or boxes using a rf gun.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of Palletizer
Palletizer Key Features
Palletizer Examples and Code Snippets
Community Discussions
Trending Discussions on Palletizer
QUESTION
In my model, there is a palletizing area where a palletizer agent moves to a location adjacent to an accumulating conveyor, picks up the last box on that conveyor, and transfers it to a pallet.
I am trying to find the best way to refer to that last box on the conveyor and store it in a variable.
I am aware of ConveyorPath.getAgent()
, documented here but it does not seem to function properly, throwing the following error:
ANSWER
Answered 2021-Nov-30 at 04:52You can simply cast the agent you are getting as a box
Box myBox = (Box)conveyor.getAgent(0)
Bare in mind that this type of casting will cause an error if you have anything that is not a box on the conveyor
Read more here https://www.w3schools.com/java/java_type_casting.asp
but if you specify in your conveyor object that the objects you have are boxes, or in this example below Cartons,
Then the get function will return an agent of that type specified, thus no casting neccesary.
The latter option is the safest and possibly more correct way of doing it in most models
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install Palletizer
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page