<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic AGV does not arrive at destination after redirecting in FlexSim Forum</title>
    <link>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553053#M57247</link>
    <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created an example model in which the AGV does not arrive at its final destination (all the way on the right). While traveling to this location the AGV is redirected twice. The problem does seem to be related to this redirecting. Is there any good solution or work around for this?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you for any tips.&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/49894-redirect-1.fsm" target="_blank"&gt;Redirect_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
    <pubDate>Thu, 17 Mar 2022 14:12:13 GMT</pubDate>
    <dc:creator>patrick_zweekhorst</dc:creator>
    <dc:date>2022-03-17T14:12:13Z</dc:date>
    <item>
      <title>AGV does not arrive at destination after redirecting</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553053#M57247</link>
      <description>&lt;P&gt;&lt;I&gt;[ FlexSim 22.0.1 ]&lt;/I&gt;&lt;/P&gt;&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have created an example model in which the AGV does not arrive at its final destination (all the way on the right). While traveling to this location the AGV is redirected twice. The problem does seem to be related to this redirecting. Is there any good solution or work around for this?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;Thank you for any tips.&lt;/P&gt;&lt;P&gt;Patrick&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/49894-redirect-1.fsm" target="_blank"&gt;Redirect_1.fsm&lt;/A&gt;&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 17 Mar 2022 14:12:13 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553053#M57247</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2022-03-17T14:12:13Z</dc:date>
    </item>
    <item>
      <title>Re: AGV does not arrive at destination after redirecting</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553054#M57248</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/751/patrick.z.html" nodeid="751"&gt;@Patrick Zweekhorst&lt;/A&gt;,&lt;P&gt;I'm not sure why the redirects are causing issues, but when I removed the second redirect (redirecting to Control Point 5), it worked properly. I assume that the issue is arising because of the relative timing of the redirect command and the travel task causing them to conflict/overwrite each other.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Sat, 19 Mar 2022 00:48:49 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553054#M57248</guid>
      <dc:creator>ryan_c10</dc:creator>
      <dc:date>2022-03-19T00:48:49Z</dc:date>
    </item>
    <item>
      <title>Re: AGV does not arrive at destination after redirecting</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553055#M57249</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;It definitely has to do with the second redirect, but I don't think it is just an unlucky timing. I had the same problem in my actual model and had no problems in recreating it here. It would be highly appreciated if someone from the development team could take at this.&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Mar 2022 13:57:57 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553055#M57249</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2022-03-21T13:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: AGV does not arrive at destination after redirecting</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553056#M57250</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;A rel="user" href="https://answers.flexsim.com/users/220/jordan.j.html" nodeid="220"&gt;@Jordan Johnson&lt;/A&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/207/anthony.j.html" nodeid="207"&gt;@anthony.johnson&lt;/A&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/206/phil.b.html" nodeid="206"&gt;@Phil BoBo&lt;/A&gt; &lt;A rel="user" href="https://answers.flexsim.com/users/87/matthew.g.html" nodeid="87"&gt;@Matthew Gillespie&lt;/A&gt; Would someone on the dev team be able to take a look at this question? Thanks!&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Mar 2022 19:57:55 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553056#M57250</guid>
      <dc:creator>ryan_c10</dc:creator>
      <dc:date>2022-03-21T19:57:55Z</dc:date>
    </item>
    <item>
      <title>Re: AGV does not arrive at destination after redirecting</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553057#M57251</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;&lt;P&gt;You give the AGV a task to travel to CP2. Then you give the AGV a task to travel to CP3. Then, shortly after the AGV starts that travel task, you redirect it to CP4 with a CONTINUE_ON_PRE_ARRIVAL.&lt;/P&gt;&lt;P&gt;Then, in the middle of that PreArrival event that is being processed (before it has even finished), you fire code &lt;EM&gt;without a breathe&lt;/EM&gt; that redirects him &lt;U&gt;again&lt;/U&gt; to CP5, which will start him traveling towards CP5 once he traverses past the next point.&lt;/P&gt;&lt;P&gt;At this point, he now tries to finish his code that was trying to travel to CP4 as part of the first redirection, and his internal state is all kinds of messed up because you (1) never let him arrive and (2) redirected him before he even finished his first redirection.&lt;/P&gt;&lt;P&gt;Thus, he thinks he's done redirecting because he is trying to finish his first redirection, as the call stack unwinds. And thus, he never gets back to traveling to CP3 because his internal state is in total disarray from getting his functions called all out of order.&lt;/P&gt;&lt;P&gt;Suggestion for a workaround? Before the second redirect, breathe for the duration of time that the AGV requires between his current PreArrival event and his next traversal event so that the AGV can finish processing the first redirection and get back to traveling to CP3 before you redirect him again.&lt;/P&gt;&lt;P&gt;&lt;A rel="noopener noreferrer" href="https://answers.flexsim.com/storage/attachments/50073-redirect-2.fsm" target="_blank"&gt;redirect_2.fsm&lt;/A&gt; (In this particular model, the amount of time needed to breathe is 1.0 seconds, but if you change the AGV's speed/acceleration/deceleration settings, then that value is going to be different because that will change when the PreArrival event fires relative to the next traversal event.)&lt;/P&gt;&lt;P&gt;Suggestion for a solution? Stop all this crazy preempting and redirection and give him tasks to go where you want him to go when you want him to go, using the end speed of the travel task to determine whether he continues traveling at full speed or whether he slows to a stop between travel tasks.&lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Mon, 21 Mar 2022 20:22:33 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553057#M57251</guid>
      <dc:creator>philboboADSK</dc:creator>
      <dc:date>2022-03-21T20:22:33Z</dc:date>
    </item>
    <item>
      <title>Re: AGV does not arrive at destination after redirecting</title>
      <link>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553058#M57252</link>
      <description>&lt;DIV class="fr-view clearfix"&gt;Hi &lt;A rel="user" href="https://answers.flexsim.com/users/206/phil.b.html" nodeid="206"&gt;@Phil BoBo&lt;/A&gt; ,&lt;P&gt;Thank you for your clear and extensive explanation. I will take a better look at this after my business trip. &lt;/P&gt;&lt;/DIV&gt;</description>
      <pubDate>Thu, 24 Mar 2022 11:19:01 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/flexsim-forum/agv-does-not-arrive-at-destination-after-redirecting/m-p/13553058#M57252</guid>
      <dc:creator>patrick_zweekhorst</dc:creator>
      <dc:date>2022-03-24T11:19:01Z</dc:date>
    </item>
  </channel>
</rss>

