Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
da1b3c85
Verified
Commit
da1b3c85
authored
Apr 09, 2021
by
Nicolas Torres
Committed by
Justin Carpentier
Apr 10, 2021
Browse files
partial fix test-cpp-model (no more timeout but still fails)
parent
e9e6023f
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/algorithm/model.hxx
View file @
da1b3c85
...
...
@@ -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
=
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment