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
Humanoid Path Planner
hpp-centroidal-dynamics
Commits
32aab997
Commit
32aab997
authored
Oct 06, 2021
by
Guilhem Saurel
Browse files
clang-format
parent
67793588
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/centroidal_dynamics.cpp
View file @
32aab997
...
...
@@ -72,9 +72,7 @@ Equilibrium::Equilibrium(const string& name, const double mass, const unsigned i
m_D
.
block
<
3
,
3
>
(
3
,
0
)
=
crossMatrix
(
-
m_mass
*
m_gravity
);
}
Equilibrium
::~
Equilibrium
(){
delete
m_solver
;
}
Equilibrium
::~
Equilibrium
()
{
delete
m_solver
;
}
bool
Equilibrium
::
computeGenerators
(
Cref_matrixX3
contactPoints
,
Cref_matrixX3
contactNormals
,
double
frictionCoefficient
,
const
bool
perturbate
)
{
...
...
test/test_static_equilibrium.cpp
View file @
32aab997
...
...
@@ -275,7 +275,8 @@ void drawRobustnessGrid(int N_CONTACTS, int GRID_SIZE, Equilibrium* solver, Cref
void
generateContacts
(
unsigned
int
N_CONTACTS
,
double
MIN_CONTACT_DISTANCE
,
double
LX
,
double
LY
,
RVector3
&
CONTACT_POINT_LOWER_BOUNDS
,
RVector3
&
CONTACT_POINT_UPPER_BOUNDS
,
RVector3
&
RPY_LOWER_BOUNDS
,
RVector3
&
RPY_UPPER_BOUNDS
,
centroidal_dynamics
::
MatrixX3
&
p
,
centroidal_dynamics
::
MatrixX3
&
N
)
{
RVector3
&
RPY_LOWER_BOUNDS
,
RVector3
&
RPY_UPPER_BOUNDS
,
centroidal_dynamics
::
MatrixX3
&
p
,
centroidal_dynamics
::
MatrixX3
&
N
)
{
MatrixXX
contact_pos
=
MatrixXX
::
Zero
(
N_CONTACTS
,
3
);
MatrixXX
contact_rpy
=
MatrixXX
::
Zero
(
N_CONTACTS
,
3
);
p
.
setZero
(
4
*
N_CONTACTS
,
3
);
// contact points
...
...
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