Hi,
I am trying to achieve a scenrio, where I have two entities. My initial goal (Goal) triggers a plan that make entity B follow entity A. now once Entity B reach to a certain proximity of Entity A, I want to drop the follow goal and start a new goal/plan (say ... the goal is come back to previous starting location).
Now I am not quite sure how to implement thsi scenario best way possible.
I was looking into possibilitis like plan.waitforCondition() where I want to evaluate the proximity of two entity based on their 3d coordinates. But not quite sure how to define a condition and use that in plan.waitforCondition().
2nd option, I was thinking is having a goal with goal creation condition based on teh result of the evaluation and inhibit current follow goal.
Any suggestion, how to implement this scenario?
Thanks.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
if you store the coordinates as belief values you could use a goal drop condition in order to get rid of the follow goal. We have done similar things in e.g. the marsworld example where entities drive to certain locations until near enough.
Kind regards
Lars
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi,
I am trying to achieve a scenrio, where I have two entities. My initial goal (Goal) triggers a plan that make entity B follow entity A. now once Entity B reach to a certain proximity of Entity A, I want to drop the follow goal and start a new goal/plan (say ... the goal is come back to previous starting location).
Now I am not quite sure how to implement thsi scenario best way possible.
I was looking into possibilitis like plan.waitforCondition() where I want to evaluate the proximity of two entity based on their 3d coordinates. But not quite sure how to define a condition and use that in plan.waitforCondition().
2nd option, I was thinking is having a goal with goal creation condition based on teh result of the evaluation and inhibit current follow goal.
Any suggestion, how to implement this scenario?
Thanks.
Hi,
if you store the coordinates as belief values you could use a goal drop condition in order to get rid of the follow goal. We have done similar things in e.g. the marsworld example where entities drive to certain locations until near enough.
Kind regards
Lars
Thanks Dr. Lars.
I'll check the example.