Motion Master 6.0.0-alpha.111
Next-generation motion control software
Loading...
Searching...
No Matches
plant_model_fit.h
Go to the documentation of this file.
1#pragma once
2
3#include <expected>
4#include <optional>
5#include <string>
6
9
17
18namespace mm {
19
24std::string plantMeasurementCsv(const node::PlantMeasurement& measurement);
25
27std::string identifyPlantModelRequest(const node::PlantMeasurement& measurement,
28 double startFrequencyHz, double endFrequencyHz);
29
35std::expected<node::PlantModelFit, std::string> parseIdentifyPlantModelReply(
36 int status, const std::string& body);
37
43node::PlantModelFitFn makePlantModelFit(const std::optional<auto_tuning::Client>& client);
44
45} // namespace mm
Calls made to the running auto-tuning process.
std::function< std::expected< PlantModelFit, std::string >(const PlantMeasurement &measurement, double startFrequencyHz, double endFrequencyHz)> PlantModelFitFn
Fits a plant model to a measurement.
Definition plant_identification.h:55
Definition capture.h:14
std::expected< node::PlantModelFit, std::string > parseIdentifyPlantModelReply(int status, const std::string &body)
Reads the program's reply.
Definition plant_model_fit.cc:47
std::string identifyPlantModelRequest(const node::PlantMeasurement &measurement, double startFrequencyHz, double endFrequencyHz)
Builds the request body of one identify_plant_model call.
Definition plant_model_fit.cc:35
node::PlantModelFitFn makePlantModelFit(const std::optional< auto_tuning::Client > &client)
The fit callback for the procedure registry.
Definition plant_model_fit.cc:77
std::string plantMeasurementCsv(const node::PlantMeasurement &measurement)
Renders a measurement as the CSV identify_plant_model reads.
Definition plant_model_fit.cc:24
Plant identification: the model of a motor and its load that auto-tuning computes gains from,...