@@ -424,13 +424,13 @@ bool CDDP::solveBackwardPass() {
424
424
425
425
// TODO: Implement active set method
426
426
for (int j = 0 ; j < control_dim; j++) {
427
- if (u (j) <= control_box_constraint. getLowerBound ()(j) + active_set_tol) {
427
+ if (u (j) <= control_box_constraint-> getLowerBound ()(j) + active_set_tol) {
428
428
Eigen::VectorXd e = Eigen::VectorXd::Zero (control_dim);
429
429
e (j) = 1.0 ;
430
430
C.row (active_constraint_index) = -e; // Note the negative sign
431
431
D.row (active_constraint_index) = Eigen::VectorXd::Zero (state_dim);
432
432
active_constraint_index += 1 ;
433
- } else if (u (j) >= control_box_constraint. getUpperBound ()(j) - active_set_tol) {
433
+ } else if (u (j) >= control_box_constraint-> getUpperBound ()(j) - active_set_tol) {
434
434
Eigen::VectorXd e = Eigen::VectorXd::Zero (control_dim);
435
435
e (j) = 1.0 ; // No negative here
436
436
C.row (active_constraint_index) = e;
@@ -573,8 +573,8 @@ bool CDDP::solveForwardPass() {
573
573
osqp_solver_.SetObjectiveVector (q);
574
574
575
575
// Lower and upper bounds
576
- Eigen::VectorXd lb = 1.0 * (control_box_constraint. getLowerBound () - u);
577
- Eigen::VectorXd ub = 1.0 * (control_box_constraint. getUpperBound () - u);
576
+ Eigen::VectorXd lb = 1.0 * (control_box_constraint-> getLowerBound () - u);
577
+ Eigen::VectorXd ub = 1.0 * (control_box_constraint-> getUpperBound () - u);
578
578
osqp_solver_.SetBounds (lb, ub);
579
579
580
580
// Solve the QP problem TODO: Use SDQP instead of OSQP
@@ -1128,8 +1128,8 @@ bool CDDP::solveCLDDPBackwardPass() {
1128
1128
osqp_solver_.SetObjectiveVector (q);
1129
1129
1130
1130
// Lower and upper bounds
1131
- Eigen::VectorXd lb = 1.0 * (control_box_constraint. getLowerBound () - u);
1132
- Eigen::VectorXd ub = 1.0 * (control_box_constraint. getUpperBound () - u);
1131
+ Eigen::VectorXd lb = 1.0 * (control_box_constraint-> getLowerBound () - u);
1132
+ Eigen::VectorXd ub = 1.0 * (control_box_constraint-> getUpperBound () - u);
1133
1133
osqp_solver_.SetBounds (lb, ub);
1134
1134
1135
1135
// Solve the QP problem TODO: Use SDQP instead of OSQP
0 commit comments