7.8 TeleoR Specific Actions

The following actions are available when the system is running in TeleoR mode (after the command teleor has been executed in the interpreter).

actions(Actions)

An interpreter command that can be used in teleor mode when an agent has been started using the start_agent command but no task thread is active. Actions should be a list of valid robotic actions - ones that have been declared in a consulted program as a robotic_action, or just a hand shake message (initialise_ | finalise_). The action list will be sent from the agent to its linked robotic interface to be performed by a real or simulated robot. Its use is to interactively test that the externally programmed robotic actions perform as expected, or to find what perceptual capabilities need to be programmed to write the perceive/action rules of a control program for a new robot task.
act actions(list(robot_message))

start_agent(Handle, Convention)

Start a new agent. Handle is the message address of the robot interface or simulation with which the agent will interact. Convention is the percepts update convention being used. This is one of: all if the robot sends all the percepts each time it sends percepts or updates if the robot only sends changes to percepts.
act start_agent(handle, atom)

kill_agent

Kill the current agent started using start_agent.
act kill_agent()

start_task(TeleoRCall, Name)

Start a new task (as a thread) whose name is Name. TeleoRCall is the TeleoR call to be executed in the thread.
act start_task(tel_term, atom)

kill_task(Task)

Kill the task with name Task started using start_task.
act kill_task(atom)

post_process_percepts(Forgotten, Remembered)

This is a user defined action that is, if defined, executed after the system defined percept handling. Forgotten is the list of percepts that have just been forgotten and Remembered is the list of percepts that have just been remembered by the percept handler. This is part of the atomic update of the Belief Store.

get_active_resources(ResourceInfo)

Succeeds if ResourceInfo is the list of terms res(atom,list(resource)) giving resources used by each running task in a multi-tasking agent. The atom is task name.
rel get_active_resources(?list(resource_info_))

get_waiting_resources(ResourceInfo)

Succeeds if ResourceInfo is the list of terms res(atom,list(resource)) giving resources needed by each waiting task in a multi-tasking agent. The atom is task name.
rel get_waiting_resources(?list(resource_info_))


On This Site