Class InputConstraints

Class Documentation

class InputConstraints

Dynamic constraints of the MAV.

Public Functions

InputConstraints()

Empty constraints object.

void addConstraint(int constraint_type, double value)

Set a constraint given type and value.

void setDefaultValues()

Sets all constraints to reasonable default values.

bool getConstraint(int constraint_type, double *value) const

Return a constraint. Returns false if constraint is not set.

bool hasConstraint(int constraint_type) const

Check if a specific constraint type is set.

bool removeConstraint(int constraint_type)

Remove a specific constraint type.

Returns false if constraint was not set.