I'm facing an issue with the project I'm developing using Anylogic. I would like to have a rack store block and a rack pick block to select a pallet rack programmatically, choosing it from an array list.
In particular, rack store is working in this way: rack store block
The rack pick block gives me an error, saying that the first pallet rack does not contain the agent, even though, by debugging, it says that that pallet rack has no free space and moreover the agents in it are of the correct type and the agent to be picked seems to be correctly positioned in the pallet rack. The rack pick block is the following: rack pick block
The info I was talking about the item are visible here and I printed them with the following piece of code:
traceln(palletRackListKuka.get(0).getByIndex(0).agentInfo());
traceln("class is " + palletRackListKuka.get(0).randomAgent().getClass());
traceln("has space is " + palletRackListKuka.get(0).hasSpace());
How can I solve this? Please ask for further details in case I was not clear enough.