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
tsid
Commits
0be61d06
Commit
0be61d06
authored
Sep 25, 2020
by
Jean-Baptiste Mouret
Browse files
some cleaning
parent
d839f98d
Pipeline
#11427
passed with stage
in 19 minutes and 26 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/formulations/inverse-dynamics-formulation-acc-force.cpp
View file @
0be61d06
...
...
@@ -384,13 +384,11 @@ const HQPData & InverseDynamicsFormulationAccForce::computeProblemData(double ti
}
}
//for(it=m_taskContactForces.begin(); it!=m_taskContactForces.end(); it++)
for
(
auto
&
it
:
m_taskContactForces
)
{
assert
(
false
);
}
//for(it=m_taskActuations.begin(); it!=m_taskActuations.end(); it++)
for
(
auto
&
it
:
m_taskActuations
)
{
const
ConstraintBase
&
c
=
it
->
task
.
compute
(
time
,
q
,
v
,
m_data
);
...
...
@@ -482,8 +480,7 @@ bool InverseDynamicsFormulationAccForce::getContactForces(const std::string & na
RefVector
f
)
{
decodeSolution
(
sol
);
//for(std::vector<ContactLevel*>::iterator it=m_contacts.begin(); it!=m_contacts.end(); it++)
for
(
auto
&
it
:
m_contacts
)
for
(
auto
&
it
:
m_contacts
)
{
if
(
it
->
contact
.
name
()
==
name
)
{
...
...
@@ -604,7 +601,6 @@ bool InverseDynamicsFormulationAccForce::removeRigidContact(const std::string &
}
int
k
=
0
;
// for(std::vector<ContactLevel*>::iterator it=m_contacts.begin(); it!=m_contacts.end(); it++)
for
(
auto
&
it
:
m_contacts
)
{
it
->
index
=
k
;
...
...
Write
Preview
Markdown
is supported
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