Coverage Control Library
Loading...
Searching...
No Matches
ControllerCVT Class Reference

Controller class for CVT based controllers. More...

Public Member Functions

 __init__ (self, dict config, Parameters params, CoverageSystem env)
 Constructor for the CVT controller.
 
(float, bool) step (self, CoverageSystem env)
 Step function for the CVT controller.
 

Public Attributes

 name = config["Name"]
 
 params = params
 
 alg = DecentralizedCVT(params, env)
 

Detailed Description

Controller class for CVT based controllers.

Definition at line 43 of file controllers.py.

Constructor & Destructor Documentation

◆ __init__()

__init__ ( self,
dict config,
Parameters params,
CoverageSystem env )

Constructor for the CVT controller.

Parameters
configConfiguration dictionary
paramsParameters object
envCoverageSystem object

Definition at line 52 of file controllers.py.

Member Function Documentation

◆ step()

(float, bool) step ( self,
CoverageSystem env )

Step function for the CVT controller.

   Performs three steps:
   1. Compute actions using the CVT algorithm
   2. Get the actions from the algorithm
   3. Step the environment using the actions
Parameters
envCoverageSystem object
Returns
Objective value and convergence flag

Definition at line 79 of file controllers.py.

Member Data Documentation

◆ alg

alg = DecentralizedCVT(params, env)

Definition at line 57 of file controllers.py.

◆ name

name = config["Name"]

Definition at line 53 of file controllers.py.

◆ params

params = params

Definition at line 54 of file controllers.py.