Skip to content

Commit

Permalink
[core/python] Updated post-review.
Browse files Browse the repository at this point in the history
* static_cast in planning_problem
* get_num_ -> get_number_of_
  • Loading branch information
cmower committed Jun 20, 2019
1 parent 18d4b8d commit 7af1c23
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exotica_core/src/planning_problem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -296,7 +296,7 @@ std::pair<std::vector<double>, std::vector<double>> PlanningProblem::GetCostEvol

int PlanningProblem::GetNumberOfIterations() const
{
return std::get<0>(GetCostEvolution()).size();
return static_cast<int>(std::get<0>(GetCostEvolution())).size();
}

double PlanningProblem::GetCostEvolution(int index) const
Expand Down
2 changes: 1 addition & 1 deletion exotica_python/src/pyexotica.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -721,7 +721,7 @@ PYBIND11_MODULE(_pyexotica, module)
.def("get_number_of_problem_updates", &PlanningProblem::GetNumberOfProblemUpdates)
.def("reset_number_of_problem_updates", &PlanningProblem::ResetNumberOfProblemUpdates)
.def("get_cost_evolution", (std::pair<std::vector<double>, std::vector<double>>(PlanningProblem::*)() const) & PlanningProblem::GetCostEvolution)
.def("get_num_iterations", &PlanningProblem::GetNumberOfIterations)
.def("get_number_of_iterations", &PlanningProblem::GetNumberOfIterations)
.def("is_valid", &PlanningProblem::IsValid);

// Problem types
Expand Down

0 comments on commit 7af1c23

Please sign in to comment.