Verified Commit da1b3c85 authored by Nicolas Torres's avatar Nicolas Torres Committed by Justin Carpentier
Browse files

partial fix test-cpp-model (no more timeout but still fails)

parent e9e6023f
......@@ -480,16 +480,15 @@ namespace pinocchio
ModelTpl<Scalar, Options, JointCollectionTpl> &reduced_model,
GeometryModel &reduced_geom_model) {
// const std::vector<GeometryModel> temp_input_geoms (input_geom_model);
// std::vector<std::reference_wrapper<GeometryModel>> temp_reduced_geoms(reduced_geom_model);
buildReducedModel(input_model,
// temp_input_geoms,
{input_geom_model},
list_of_joints_to_lock, reference_configuration,
reduced_model,
// temp_reduced_geoms
{reduced_geom_model}
);
const std::vector<GeometryModel> temp_input_geoms { input_geom_model };
std::vector<GeometryModel> temp_reduced_geom_models { reduced_geom_model };
std::vector<std::reference_wrapper<GeometryModel>>
temp_reduced_geom_models_refs(temp_reduced_geom_models.begin(),
temp_reduced_geom_models.end());
buildReducedModel(input_model, temp_input_geoms, list_of_joints_to_lock,
reference_configuration, reduced_model,
temp_reduced_geom_models_refs);
}
template <typename Scalar, int Options,
......@@ -511,7 +510,7 @@ namespace pinocchio
// TODO: the check below could only come up from C++,
// as the python wrapper creates list of the same size
assert(list_of_reduced_geom_models.size() == list_of_geom_models.size());
for (unsigned int i; i < list_of_reduced_geom_models.size(); ++i) {
for (unsigned int i=0; i < list_of_reduced_geom_models.size(); ++i) {
auto &input_geom_model =
list_of_geom_models[i];
auto &reduced_geom_model =
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment