question

Alexander F avatar image
0 Likes"
Alexander F asked Alexander F commented

How can i set right travel sequece by crane when navigation is activated?

uavmodle.fsm

Hello I need your help.

I have used several cranes in my model to simulate some drones. I have only left the hook visible and replaced by a corresponding shape, see enclosed model. Since the drones are supposed to fly certain items, I have activated the AStar navigation. But the problem is now that the lift, drop and travel does not work as intended. When traveling, the hook (dron) is moved at the ground and not in the air. Only the crane without navigation moves in the right way, but can not avoid objects. But I want the hook travels in the air and still navigates the shortest way around objects. How can I change this?

FlexSim 17.1.4
task executerastarcrane movementcranesnavigation
uavmodle.fsm (243.1 KiB)
· 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.

1 Answer

Joerg Vogel avatar image
0 Likes"
Joerg Vogel answered Alexander F commented

There isn't a problem with the version. The problem lays inside the standard transport tasksequence. The task sequence contains two tasks of TASKTYPE_TRAVEL which force the taskexecuter travel to the load and then to the unload object. But the Crane moves only in the defined strategy in OFFSET TRAVEL. Those two travel task are obsolete for the transport. You have to delete them or set them inactive by changing the type for example to a TASKTYPE_TAG. I found this answer when I tried to let a transporter do the flight. In The UAV_Crane163 I have changed the travel tasks to the tag tasks in the OnReceiveTaskSequence trigger. Then the UAV behaves as expected.

  1. if(ts.subnodes.length == 5){
  2. changetask(ts,1,TASKTYPE_TAG);
  3. changetask(ts,4,TASKTYPE_TAG);
  4. }

7964-uavmodel-jv.fsm (245.2 KiB)
· 4
5 |100000

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