Node variables used to construct the base motion spline. More...
#include <nodes_variables_all.h>
Public Member Functions | |
std::vector< NodeValueInfo > | GetNodeValuesInfo (int idx) const override |
Node values affected by one specific optimization variable. | |
NodesVariablesAll (int n_nodes, int n_dim, std::string variable_id) | |
virtual | ~NodesVariablesAll () |
Node variables used to construct the base motion spline.
Every node is optimized over, in contrast to PhaseNodes, where multiple nodes in the spline are represented by the same optimization variables.
Definition at line 45 of file nodes_variables_all.h.
towr::NodesVariablesAll::NodesVariablesAll | ( | int | n_nodes, |
int | n_dim, | ||
std::string | variable_id | ||
) |
n_nodes | Number of nodes to construct the spline. |
n_dim | Number of dimensions of each node. |
variable_id | Name of this variables set in the optimization. |
Definition at line 34 of file nodes_variables_all.cc.
virtual towr::NodesVariablesAll::~NodesVariablesAll | ( | ) | [virtual] |
std::vector< NodesVariablesAll::NodeValueInfo > towr::NodesVariablesAll::GetNodeValuesInfo | ( | int | opt_idx | ) | const [override, virtual] |
Node values affected by one specific optimization variable.
opt_idx | The index (=row) of the optimization variable. |
This function determines which node values are optimized over, and which nodes values are set by the same optimization variable.
Reverse of GetOptIndex().
Implements towr::NodesVariables.
Definition at line 46 of file nodes_variables_all.cc.