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

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

alexander_f
Not applicable
1,038 Views
8 Replies
Message 1 of 9

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

alexander_f
Not applicable

[ FlexSim 17.1.4 ]

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?

0 Likes
Accepted solutions (1)
1,039 Views
8 Replies
Replies (8)
Message 2 of 9

joerg_vogel_HsH
Mentor
Mentor

Maybe the A Star module isn't in the current version capable to extrapolate the two dimensional boundary plane into the third dimension.

0 Likes
Message 3 of 9

alexander_f
Not applicable

Is it possible that someone can test my model in an other version? Maybe it's not a problem of my current version and I have made a mistake in the settings.

0 Likes
Message 4 of 9

alexander_f
Not applicable
0 Likes
Message 5 of 9

joerg_vogel_HsH
Mentor
Mentor
Accepted solution

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.

if(ts.subnodes.length == 5){
changetask(ts,1,TASKTYPE_TAG);
changetask(ts,4,TASKTYPE_TAG);
}
0 Likes
Message 6 of 9

alexander_f
Not applicable
changed-uavmodle.fsm

@ Jörg thank you first for your effort. With your changes to uav_crane163, the crane works in the correct order, but it looks as if your changes had deactivated the a*-navigation. Because the cran moves now no longer around the barriers and moves like uav_crane150 (thatone without navigation). I have also added to uav_crane163 your code above, because after several loading cycles it has occurred, that after the unloading task is no longer lift off. But then on the way back has the a*-navigation worked again. But unfortunately this does not solve my problem.

To your variant with the transporter, the loaded and unloaded tasks works also as it should, but also here the a*-navigation seems to be deactivated. And after the unloading task the forklift should also take off and travel back again.

I also noticed that the travel status differs from the normal cran and the a*-navigation. So I tried something in the tasksequence of the uav_crane164. Now he lifts himself after the load and moves along the a * -navigation, but he does not lift anymore after the unloaded. Unfortunately, I have nowhere found in which order I can set the travel sequence so that the cran / uav moves right. I am also not quite clear according to which logic / sequence the movements are executed when a*-navigation is activated.
Is it somehow possible to set the right travel sequence for the a*-navigation?

0 Likes
Message 7 of 9

joerg_vogel_HsH
Mentor
Mentor

@Alexander F Have you considered to build a taskexecuter which travels on the ground and shows only the animation of the drone vertically?

0 Likes
Message 8 of 9

alexander_f
Not applicable

No, I have not, because the crane has the characteristics I would like and I can adjust and change the speeds and height easily. The taskexecuter is by principle the same as the transporter and there it is not so easy to implement the desired movement as I think.

0 Likes
Message 9 of 9

joerg_vogel_HsH
Mentor
Mentor
inserttask(ts,TASKTYPE_PLACEOFFSET, obj. item, obj.unloadstation,0,1,0); 

// Travel in y direction only.

0 percent travel in x, 100% in y, 0 % in z because the vehicle is ground based.

inserttask(ts,TASKTYPE_PLACEOFFSET, obj. item, obj.unloadstation,1,1,0);

// Then travel to destination. It is the travel only in x direction.

100 percent travel in x, plus the already traveled 100% in y and still on the ground.

And then you use an animation to show a drone which lift off and sink to the ground, while the drone is traveling.

0 Likes