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
jrl-walkgen
Commits
3e6898fd
Commit
3e6898fd
authored
Apr 22, 2020
by
Guilhem Saurel
Browse files
[Format] add clang format
parent
59e9e99f
Pipeline
#9141
failed with stage
in 60 minutes and 1 second
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
.clang-format
0 → 100644
View file @
3e6898fd
---
ColumnLimit: 80
Standard: C++03
...
src/GlobalStrategyManagers/CoMAndFootOnlyStrategy.cpp
View file @
3e6898fd
...
...
@@ -37,11 +37,8 @@ using namespace PatternGeneratorJRL;
CoMAndFootOnlyStrategy
::
CoMAndFootOnlyStrategy
(
SimplePluginManager
*
aSimplePluginManager
)
:
GlobalStrategyManager
(
aSimplePluginManager
),
m_NbOfHitBottom
(
0
),
m_BufferSizeLimit
(
0
)
{
}
:
GlobalStrategyManager
(
aSimplePluginManager
),
m_NbOfHitBottom
(
0
),
m_BufferSizeLimit
(
0
)
{}
CoMAndFootOnlyStrategy
::~
CoMAndFootOnlyStrategy
()
{}
...
...
src/Mathematics/Bsplines.hh
View file @
3e6898fd
...
...
@@ -79,7 +79,7 @@ protected:
std
::
vector
<
double
>
m_derivative_control_points
;
std
::
vector
<
double
>
m_sec_derivative_control_points
;
std
::
vector
<
std
::
vector
<
double
>>
m_basis_functions
;
std
::
vector
<
std
::
vector
<
double
>
>
m_basis_functions
;
std
::
vector
<
double
>
m_basis_functions_derivative
;
std
::
vector
<
double
>
m_basis_functions_sec_derivative
;
...
...
src/ZMPRefTrajectoryGeneration/AnalyticalMorisawaCompact.cpp
View file @
3e6898fd
...
...
@@ -641,7 +641,7 @@ void AnalyticalMorisawaCompact::GetZMPDiscretization(
COMStates
,
ZMPPositions
,
LeftFootAbsolutePositions
,
RightFootAbsolutePositions
,
outputDeltaCOMTraj_deq
);
#endif
vector
<
vector
<
double
>>
filteredZMPMB
(
n
,
vector
<
double
>
(
2
,
0.0
));
vector
<
vector
<
double
>
>
filteredZMPMB
(
n
,
vector
<
double
>
(
2
,
0.0
));
for
(
unsigned
int
i
=
0
;
i
<
n
;
++
i
)
{
for
(
int
j
=
0
;
j
<
3
;
j
++
)
{
COMStates
[
i
].
x
[
j
]
+=
outputDeltaCOMTraj_deq
[
i
].
x
[
j
];
...
...
src/ZMPRefTrajectoryGeneration/DynamicFilter.cpp
View file @
3e6898fd
...
...
@@ -280,7 +280,7 @@ int DynamicFilter::OnLinefilter(
zmpmb_i_
[
i
*
inc
]
=
ZMPMB_vec_
[
i
];
}
vector
<
vector
<
double
>>
dZMPMB_vec
(
N
,
vector
<
double
>
(
2
,
0.0
));
vector
<
vector
<
double
>
>
dZMPMB_vec
(
N
,
vector
<
double
>
(
2
,
0.0
));
dZMPMB_vec
[
0
][
0
]
=
(
ZMPMB_vec_
[
1
][
0
]
-
ZMPMB_vec_
[
0
][
0
])
/
inc
;
dZMPMB_vec
[
0
][
1
]
=
(
ZMPMB_vec_
[
1
][
1
]
-
ZMPMB_vec_
[
0
][
1
])
/
inc
;
dZMPMB_vec
[
N
-
1
][
0
]
=
...
...
src/ZMPRefTrajectoryGeneration/ZMPVelocityReferencedQP.hh
View file @
3e6898fd
...
...
@@ -226,7 +226,7 @@ private:
/// \brief used to predict the next step using the current solution
/// allow the computation of the complete preview
vector
<
vector
<
double
>>
FootPrw_vec
;
vector
<
vector
<
double
>
>
FootPrw_vec
;
/// \brief Index where to begin the interpolation
unsigned
CurrentIndex_
;
...
...
src/ZMPRefTrajectoryGeneration/nmpc_generator.hh
View file @
3e6898fd
...
...
@@ -278,8 +278,8 @@ private:
// Obstacle constraint
unsigned
nc_obs_
;
std
::
vector
<
std
::
vector
<
Eigen
::
MatrixXd
>>
Hobs_
;
std
::
vector
<
std
::
vector
<
Eigen
::
VectorXd
>>
Aobs_
;
std
::
vector
<
std
::
vector
<
Eigen
::
MatrixXd
>
>
Hobs_
;
std
::
vector
<
std
::
vector
<
Eigen
::
VectorXd
>
>
Aobs_
;
std
::
vector
<
Eigen
::
VectorXd
>
UBobs_
;
std
::
vector
<
Circle
>
obstacles_
;
Eigen
::
VectorXd
qp_J_obs_i_
;
...
...
tests/CommonTools.cpp
View file @
3e6898fd
...
...
@@ -264,7 +264,7 @@ void OneStep::fillInDebugFile() {
fillInDebugVector
();
ofstream
aof
;
/// Create filename
string
aFileName
;
assert
(
!
m_TestName
.
empty
());
...
...
@@ -274,7 +274,7 @@ void OneStep::fillInDebugFile() {
if
(
m_NbOfIt
==
0
)
{
/// Write description file if this is the first iteration
writeDescriptionFile
();
/// Erase the file if we start.
aof
.
open
(
aFileName
.
c_str
(),
ofstream
::
out
);
aof
.
close
();
...
...
tests/TestHirukawa2007.cpp
View file @
3e6898fd
...
...
@@ -97,7 +97,7 @@ void readData(vector<COMState> &comPos_, vector<FootAbsolutePosition> &rf_,
vector
<
FootAbsolutePosition
>
&
lf_
,
vector
<
HandAbsolutePosition
>
&
rh_
,
vector
<
HandAbsolutePosition
>
&
lh_
,
vector
<
ZMPPosition
>
&
zmp_
)
{
vector
<
vector
<
double
>>
data_
;
vector
<
vector
<
double
>
>
data_
;
data_
.
clear
();
std
::
string
astateFile
=
"/home/mnaveau/devel/ros_unstable/src/jrl/jrl-walkgen/_build-RELEASE/"
...
...
tests/TestInverseKinematics.cpp
View file @
3e6898fd
...
...
@@ -103,7 +103,7 @@ public:
os
<<
"<===============================================================>"
<<
endl
;
os
<<
"Computing the ZMPMB"
<<
endl
;
vector
<
vector
<
double
>>
zmpmb
(
comPos
.
size
(),
vector
<
double
>
(
2
));
vector
<
vector
<
double
>
>
zmpmb
(
comPos
.
size
(),
vector
<
double
>
(
2
));
for
(
unsigned
int
i
=
0
;
i
<
comPos
.
size
();
++
i
)
{
dynamicfilter_
->
ComputeZMPMB
(
samplingPeriod
,
comPos
[
i
],
lfFoot
[
i
],
rfFoot
[
i
],
zmpmb
[
i
],
stage0
,
i
);
...
...
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