jacamo-lang / mapc2020

Team for MAPC 2020
GNU General Public License v3.0
3 stars 1 forks source link

The agent is getting stuck when its mind is too busy #53

Open cleberjamaral opened 3 years ago

cleberjamaral commented 3 years ago

Sometimes the agent mind is too busy with many intentions. It may get stuck waiting to finish old intentions but new one come up and it actually become even more busy.

The image below shows an agent ready to submit a task. After finishing the connection and rotating an agent was wondering around this agent, so probably it had difficulty to find a route to the goal area. After that, even with a clean path, the agent did not get rid of this consuming loop with the number of intentions growing even in an easy to solve path situation.

Screenshot_2021-02-11_09-09-10

The following statistics shows a successful connection, but after that, since an agent was blocking the passage the master started to have difficulty to get rid of this situation

A2  command_zombie  [zombie_do(connect(agentA2,-1,0))]
A2  do_connect  [lastAction(connect),lastActionResult(failed_partner),lastAction(connect),lastActionResult(failed_random)]
A2  command_zombie  [zombie_do(connect(agentA2,-1,0))]
A2  do_connect  [lastAction(connect),lastActionResult(success),lastAction(connect),lastActionResult(success)]
A2  command_zombie  [zombie_do(detach(w))]
A2  do_detach   [lastAction(skip),lastActionResult(success),lastAction(detach),lastActionResult(success)]
A2  excessive_delay [current_intentions([230034,229896])]
A2  excessive_delay [current_intentions([229896,230034])]
A2  excessive_delay [current_intentions([230591,230646,230707])]
A2  excessive_delay [current_intentions([230646,230707,230591])]
A2  excessive_delay [current_intentions([230707,230591,230646])]
A2  excessive_delay [current_intentions([231513,231560,231583,231736,164439])]
A2  excessive_delay [current_intentions([231560,231583,231736,164439,231513])]
A2  excessive_delay [current_intentions([231583,231736,164439,231513,231560])]
A2  excessive_delay [current_intentions([231736,164439,231513,231560,231583])]
A2  excessive_delay [current_intentions([164439,231513,231560,231583,231736])]

The situation was getting worst after some time, with even more intentions and the agent still stuck

A2  excessive_delay [current_intentions([239035,239039,239038,239045,239047,239062,239064,239077,239104,239158,164439,238997])]
A2  excessive_delay [current_intentions([239039,239038,239045,239047,239062,239064,239077,239104,239158,164439,238997,239035])]
A2  excessive_delay [current_intentions([239038,239045,239047,239062,239064,239077,239104,239158,164439,238997,239035,239039])]
A2  excessive_delay [current_intentions([239045,239047,239062,239064,239077,239104,239158,164439,238997,239035,239039,239038])]
A2  excessive_delay [current_intentions([239047,239062,239064,239077,239104,239158,164439,238997,239035,239039,239038,239045])]