Crate forester_http

Source
Expand description

§Forester HTTP

The library provides a contract to implement a remote action alongside with the
API to the Forester instance of http server. It is used to get access to the blackboard and to trace events.

The library composes three main parts:

  • ForesterRemoteAction - the contract for the remote action that is expected by the Forester instance
  • ForesterHttpApi - the api to Forester instance of http server
  • ForesterHttpClient - the client to the Forester instance of http server

Client uses api to get access to the blackboard and to trace events. Under the hood it uses reqwest(blocking) to send requests to the Forester instance. If the library is willing to use another client it can use only api.

Modules§

api
client

Structs§

RemoteActionRequest
The request that is sent from the Forester instance It has the current tick and the arguments in the action from tree
RtArgument
The argument that is sent from the Forester instance

Enums§

TickResult
The result that the node returns It can be Success, Failure or Running The Failure contains the error message The Running means that the node is still running and it will be executed on the next tick

Traits§

ForesterRemoteAction
Describes the contract for the remote action that is expected by the Forester instance The remote action is a remote implementation of the action node in the tree.