Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Question: How do goal planning use heuristic? #330

Open
rasmussvala opened this issue Jan 31, 2025 · 0 comments
Open

Question: How do goal planning use heuristic? #330

rasmussvala opened this issue Jan 31, 2025 · 0 comments
Labels

Comments

@rasmussvala
Copy link

Hi, I'm following the Getting Started guide for v3 and just implemented picking up pears. However, I expected the agent to pick up 3 pears in a row before toggling to idle. I understand it has something to do with heuristic but I don't fully understand it.

In the documentation, this is all I can find about heuristics (in Classes -> AgentBehaviour and ActionProvider):

"Distance Multiplier
The primary objective of actions is to achieve goals swiftly. If the action's cost equates to its completion time, then the heuristic's distance value should be divided by the agent's movement speed. Using SetDistanceMultiplierSpeed(float speed) sets the agent's (max/average) speed, enabling the planner to more precisely ascertain the optimal action."

What happens when the action's cost does not equate to its completion time? Can I see the heuristic cost somewhere when I'm debugging?

Screenshots
Screenshot of idling goal being triggered before 3 pears have been picked up.
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant