VelMANN class
#include <BipedalLocomotion/ML/VelMANN.h>
MANN is a class that allows to perform the inference of an onnx implementing Mode-Adaptive Neural Networks (MANN).
The network was originally proposed in [H. Zhang, S. Starke, T. Komura, and J. Saito, “Mode-adaptive neural networks for quadruped motion control,” ACM Trans. Graph., vol. 37, no. 4, pp. 1–11, 2018.](https:/onnxruntime to perform inference and it has been tested with an onnx model generated from https:/
Base classes
-
template<class _Input, class _Output>class BipedalLocomotion::System::Advanceable<VelMANNInput, VelMANNOutput>
- Basic class that represents a discrete system.
Constructors, destructors, conversion operators
Public functions
-
auto initialize(std::weak_ptr<const ParametersHandler::
IParametersHandler> paramHandler) -> bool override - Initialize the network.
- auto setInput(const VelMANNInput& input) -> bool override
- Set the input of the network.
- auto advance() -> bool override
- Perform one step of the inference given the input set.
- auto getOutput() const -> const VelMANNOutput& override
- Get the output of the network once advance has been called.
- auto isOutputValid() const -> bool override
- Check if the output of the network is valid.
Function documentation
bool BipedalLocomotion:: ML:: VelMANN:: initialize(std::weak_ptr<const ParametersHandler:: IParametersHandler> paramHandler) override
Initialize the network.
| Parameters | |
|---|---|
| paramHandler | pointer to the parameters handler. |
| Returns | True in case of success, false otherwise. |
bool BipedalLocomotion:: ML:: VelMANN:: setInput(const VelMANNInput& input) override
Set the input of the network.
| Parameters | |
|---|---|
| input | the struct containing all the inputs of the network. |
| Returns | true in case of success, false otherwise. |
bool BipedalLocomotion:: ML:: VelMANN:: advance() override
Perform one step of the inference given the input set.
| Returns | true in case of success, false otherwise. |
|---|
const VelMANNOutput& BipedalLocomotion:: ML:: VelMANN:: getOutput() const override
Get the output of the network once advance has been called.
| Returns | the output of the network. |
|---|
bool BipedalLocomotion:: ML:: VelMANN:: isOutputValid() const override
Check if the output of the network is valid.
| Returns | true if it is valid, false otherwise. |
|---|