View Single Post
  #3  
Old 04-23-2016
Jing Chen
Guest
 
Posts: n/a
Downloads: 2
Uploads: 0
Default

Hi Anthony,
I think you may misunderstand what Zhang want to do.
The 2 agvs will decrease their speed "when their distance less than 5m" rather than "all in an area". So agv will slow down in any path.
I think we should detect the distance of 2 agvs in real-time.
Inspired by Anthony's post, I use preempt task to do it. Since distancetotravel() command can not work in AGV path during any running time, I try to use the xloc() to find out the distance between agv and object which only works in staright path.

Maybe collision spheres will be better to find out distance between 2 agvs.

Attached is the model (Version2016) I made and hope it helps.

BTW, I'm looking for a command like distancetotravel() can easily get the distance in AGV path, can anyone help me? or distancetotravel() can work in next version?
Attached Files
File Type: fsm agv_slowdown_by_distanceV16.fsm (21.7 KB, 561 views)
Reply With Quote
The Following User Says Thank You to Jing Chen For This Useful Post:
Anthony Johnson (04-25-2016)