Skip to content

Commit 7017ba0

Browse files
nimrod-gileadicopybara-github
authored andcommitted
Update dim_actions and dim_parameters in iLQS.
Fixes #264. PiperOrigin-RevId: 603912409 Change-Id: Ia1f4de579f2204b2bc1d7a7a8493607e70754fec
1 parent aff408d commit 7017ba0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mjpc/planners/ilqs/planner.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,8 @@ void iLQSPlanner::OptimizePolicy(int horizon, ThreadPool& pool) {
114114
if (dim_actions != sampling.model->nu * (horizon - 1) ||
115115
dim_parameters != sampling.model->nu * num_spline_points) {
116116
// dimension
117-
int dim_parameters = sampling.model->nu * num_spline_points;
118-
int dim_actions = sampling.model->nu * (horizon - 1);
117+
dim_parameters = sampling.model->nu * num_spline_points;
118+
dim_actions = sampling.model->nu * (horizon - 1);
119119

120120
// compute parameter to action mapping
121121
mappings[sampling.policy.representation]->Compute(

0 commit comments

Comments
 (0)