question

Jon Abbott avatar image
0 Likes"
Jon Abbott asked Jason Lightfoot commented

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

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

FlexSim 20.0.9
rackrobotflexsim 20.0.9flowitem binflow item orientation
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.

1 Answer

Jason Lightfoot avatar image
1 Like"
Jason Lightfoot answered Jason Lightfoot commented

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:

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

And can then place this in the OnSend:

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

Model attached.

tote-rotation-in-rack3_jl.fsm


· 3
5 |100000

Up to 12 attachments (including images) can be used with a maximum of 23.8 MiB each and 47.7 MiB total.