Preserve item orientation when placing into a rack using a robot?

Preserve item orientation when placing into a rack using a robot?

jon_abbott
Not applicable
117 Views
4 Replies
Message 1 of 5

Preserve item orientation when placing into a rack using a robot?

jon_abbott
Not applicable

[ FlexSim 20.0.9 ]

Hello! When I place objects onto a gravity flow rack using a robot, it appears to be losing the orientation that is set for the objects in the flowitem bin. This doesn't seem to happen when operators are used, or a direct port connection. Please see the attached model for an example. I would like for the robot to preserve the orientation that is set for these two objects as they are defined in the flowitem bin. Is this possible? Thanks in advance for all of your assistance.

tote_rotation_in_rack3.fsm

0 Likes
Accepted solutions (1)
118 Views
4 Replies
Replies (4)
Message 2 of 5

jason_lightfootVL7B4
Autodesk
Autodesk
Accepted solution

The problem here is that the Robot's onSend behavior sets the rotation to (0,0,0)

To alter it we can override that behavior by adding the OnSend node to the robot with our own code.

That's done here:

35362-1608140878863.png

And requires us to know what it should be so I attached a label "zrot" to the item.

35363-1608140976436.png

And can then place this in the OnSend:

Object involved=i;
involved.rotation=Vec3(0,0,involved.zrot);

Model attached.

tote-rotation-in-rack3_jl.fsm

Message 3 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

Actually - while that does the job visually I don't think it's early enough to have the correct rotation for the rack to correctly consider the space available. It might be better to rotate the item after it is loaded and before it's unloaded.

0 Likes
Message 4 of 5

jon_abbott
Not applicable

Thanks @jason.lightfoot. I see what you mean about the rack not calculating space correctly. I tried adding the rotate activities you mentioned, but it doesn't seem to work as expected (see attached). Please let me know if you had a different rotation approach in mind for this.

Any chance the developers can add a checkbox somewhere in the Robot properties that says "Preserve item orientation" to automate all of these steps? I'm thinking it should be checked by default to match the behavior of other task executers. Please let me know if I should send this suggestion to dev@flexsim.com, thanks.


tote-rotation-in-rack3-jl2.fsm

0 Likes
Message 5 of 5

jason_lightfootVL7B4
Autodesk
Autodesk

That was almost the solution, but the items needs to be rotated just once and to the value of the original items - so not always 90 - it's token.item.zrot.

Model attached.tote-rotation-in-rack3-jl3.fsm

Feel free to post the issue to the dev email. If you do, a link to this post will probably help too.

0 Likes