38 int n_variables = n_nodes*n_derivs*
k3D;
42 std::vector<BaseNodes::IndexInfo>
45 std::vector<IndexInfo> nodes;
47 int n_opt_values_per_node_ = 2*
GetDim();
48 int internal_id = idx%n_opt_values_per_node_;
53 node.
node_id_ = std::floor(idx/n_opt_values_per_node_);
55 nodes.push_back(node);
virtual std::vector< IndexInfo > GetNodeInfoAtOptIndex(int idx) const override
The node information that the optimization index represents.
int node_dim_
the dimension (x,y,z) of that optimization index.
Position and velocity of nodes used to generate a Hermite spline.
void InitMembers(int n_nodes, int n_variables)
initializes the member variables.
BaseNodes(int n_nodes, std::string variable_id)
Dx node_deriv_
The derivative (pos,vel) of that optimziation index.
Holds information about the node the optimization index represents.
int node_id_
The ID of the node of the optimization index.