40 nodes_ = std::vector<Node>(n_nodes,
Node(n_dim));
45 std::vector<NodesVariablesAll::NodeValueInfo>
48 std::vector<NodeValueInfo> vec_nvi;
50 int n_opt_values_per_node_ = 2*
GetDim();
51 int internal_id = idx%n_opt_values_per_node_;
56 nvi.
id_ = std::floor(idx/n_opt_values_per_node_);
58 vec_nvi.push_back(nvi);
int id_
ID of the associated node (0 =< id < number of nodes in spline).
int dim_
Dimension (x,y,z) of that derivative.
Position and velocity of nodes used to generate a Hermite spline.
std::vector< Node > nodes_
static const Bounds NoBound
Semantic information associated with a scalar node value.
NodesVariablesAll(int n_nodes, int n_dim, std::string variable_id)
std::vector< NodeValueInfo > GetNodeValuesInfo(int idx) const override
Node values affected by one specific optimization variable.
void SetRows(int num_rows)
Dx deriv_
Derivative (pos,vel) of the node with that ID.
static const int n_derivatives
value and first derivative.
VecBound bounds_
the bounds on the node values.
std::vector< Bounds > VecBound
A node represents the state of a trajectory at a specific time.