Skip to content
Snippets Groups Projects
Commit 26649857 authored by Jon's avatar Jon
Browse files

Add additional comment

parent 9767d094
No related branches found
No related tags found
No related merge requests found
...@@ -80,6 +80,8 @@ def search_behaviour(percepts, actuators, search_function): ...@@ -80,6 +80,8 @@ def search_behaviour(percepts, actuators, search_function):
# the search_function should return a goal_node (an instance of the class GraphNode) # the search_function should return a goal_node (an instance of the class GraphNode)
# given the present agent location and a goal function: # given the present agent location and a goal function:
# goal_node = search_function(agent_location, a_goal_function_for_charging_dock) # goal_node = search_function(agent_location, a_goal_function_for_charging_dock)
# If you have not implemented any goal function yet, for now you can use a lambda function
# always returning False: lambda node_state: False
# if the goal_node was found (not None/False), then we can generate the path to the goal # if the goal_node was found (not None/False), then we can generate the path to the goal
# with the method .get_path() # with the method .get_path()
# We can set the value of path_to_dock to the found path # We can set the value of path_to_dock to the found path
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment