@@ -47,38 +47,38 @@ class C3Base {
4747 // / @return void
4848 void Solve (const Eigen::VectorXd& x0, bool verbose = false );
4949
50- // / Compute the MPC cost, using previously solved MPC solution.
51- // / @param cost_type The method of computing the cost
52- // / @param Kp_for_ee_pd_rollout Proportional gain for simulated EE PD control
53- // / used for some of the cost types
54- // / @param Kd_for_ee_pd_rollout Derivative gain for simulated EE PD control
55- // / used for some of the cost types
56- // / @param force_tracking_disabled Whether to simulate EE PD control with
57- // / feedforward u from the MPC solution
58- // / @param print_cost_breakdown Whether to print the cost breakdown
59- // / @param verbose Whether to print additional information
60- // / @return The cost and its associated state trajectory
61- std::pair<double , std::vector<Eigen::VectorXd>> CalcCost (
62- C3CostComputationType cost_type = kSimLCSReplaceC3EEPlan ,
63- std::vector<double > Kp_for_ee_pd_rollout = {0.0 , 0.0 , 0.0 },
64- std::vector<double > Kd_for_ee_pd_rollout = {0.0 , 0.0 , 0.0 },
65- bool force_tracking_disabled = false , int num_objects = 1 ,
66- bool print_cost_breakdown = false , bool verbose = false ) const ;
67-
68- // / Helper function to simulate the dynamics with PD control on the EE
69- // / location and velocity plans, and the control input plans. Used for cost
70- // / types that simulate the impedance control.
71- // / @param Kp_for_ee_pd_rollout Proportional gain for simulated EE PD control
72- // / @param Kd_for_ee_pd_rollout Derivative gain for simulated EE PD control
73- // / @param force_tracking_disabled Whether to simulate EE PD control with
74- // / feedforward u from the MPC solution
75- // / @param verbose Whether to print additional information
76- // / @return the simulated state and input trajectories
77- std::pair<std::vector<Eigen::VectorXd>, std::vector<Eigen::VectorXd>>
78- SimulatePDControl (std::vector<double > Kp_for_ee_pd_rollout = {0.0 , 0.0 , 0.0 },
79- std::vector<double > Kd_for_ee_pd_rollout = {0.0 , 0.0 , 0.0 }, int num_objects = 1 ,
80- bool force_tracking_disabled = false ,
81- bool verbose = false ) const ;
50+ // /// Compute the MPC cost, using previously solved MPC solution.
51+ // /// @param cost_type The method of computing the cost
52+ // /// @param Kp_for_ee_pd_rollout Proportional gain for simulated EE PD control
53+ // /// used for some of the cost types
54+ // /// @param Kd_for_ee_pd_rollout Derivative gain for simulated EE PD control
55+ // /// used for some of the cost types
56+ // /// @param force_tracking_disabled Whether to simulate EE PD control with
57+ // /// feedforward u from the MPC solution
58+ // /// @param print_cost_breakdown Whether to print the cost breakdown
59+ // /// @param verbose Whether to print additional information
60+ // /// @return The cost and its associated state trajectory
61+ // std::pair<double, std::vector<Eigen::VectorXd>> CalcCost(
62+ // C3CostComputationType cost_type = kSimLCSReplaceC3EEPlan,
63+ // std::vector<double> Kp_for_ee_pd_rollout = {0.0, 0.0, 0.0},
64+ // std::vector<double> Kd_for_ee_pd_rollout = {0.0, 0.0, 0.0},
65+ // bool force_tracking_disabled = false, int num_objects = 1,
66+ // bool print_cost_breakdown = false, bool verbose = false) const;
67+
68+ // /// Helper function to simulate the dynamics with PD control on the EE
69+ // /// location and velocity plans, and the control input plans. Used for cost
70+ // /// types that simulate the impedance control.
71+ // /// @param Kp_for_ee_pd_rollout Proportional gain for simulated EE PD control
72+ // /// @param Kd_for_ee_pd_rollout Derivative gain for simulated EE PD control
73+ // /// @param force_tracking_disabled Whether to simulate EE PD control with
74+ // /// feedforward u from the MPC solution
75+ // /// @param verbose Whether to print additional information
76+ // /// @return the simulated state and input trajectories
77+ // std::pair<std::vector<Eigen::VectorXd>, std::vector<Eigen::VectorXd>>
78+ // SimulatePDControl(std::vector<double> Kp_for_ee_pd_rollout = {0.0, 0.0, 0.0},
79+ // std::vector<double> Kd_for_ee_pd_rollout = {0.0, 0.0, 0.0}, int num_objects = 1,
80+ // bool force_tracking_disabled = false,
81+ // bool verbose = false) const;
8282
8383 // / Solve a single ADMM step.
8484 // / @param x0 The initial state of the system
0 commit comments