$darkmode
minimator::MinimatorConfiguration Struct Reference
Inheritance diagram for minimator::MinimatorConfiguration:
Collaboration diagram for minimator::MinimatorConfiguration:

Public Member Functions

 CONFABLE_SCHEMA (MinimatorConfiguration)
 
- Public Member Functions inherited from fable::Confable
 Confable (const Confable &) noexcept
 
 Confable (Confable &&) noexcept=default
 
Confableoperator= (const Confable &other) noexcept
 
Confableoperator= (Confable &&other) noexcept
 
virtual void reset_schema ()
 
Schemaschema ()
 
const Schemaschema () const
 
virtual void validate_or_throw (const Conf &c) const
 
virtual bool validate (const Conf &c, std::optional< SchemaError > &err) const
 
virtual void from_conf (const Conf &c)
 
virtual void to_json (Json &j) const
 
Json to_json () const
 

Public Attributes

std::vector< std::string > vehicles {"default"}
 

Additional Inherited Members

- Protected Member Functions inherited from fable::Confable
virtual Schema schema_impl ()
 

Detailed Description

MinimatorConfiguration is what we use to configure Minimator from some JSON input.

The Cloe runtime takes care of reading the configuration from the stack file and passing it to the MinimatorFactory, which can then pass it to Minimator during construction.

So, the input will be deserialized from /simulators/N/args, where N is some entry in the simulators object:

{
  "version": "4",
  "simulators": [
    {
      "binding": "minimator"
      "args": {
        "vehicles": [
          "ego1",
          "ego2"
        ]
      }
    }
  ]
}

Since our minimalistic simulator doesn't do much yet, our configuration is quite simple: a number of names which will each become a vehicle.


The documentation for this struct was generated from the following file: