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
d42beb9e
Commit
d42beb9e
authored
Jul 23, 2016
by
jcarpent
Browse files
[C++][Doc] Clean model
parent
16f2d75a
Changes
2
Hide whitespace changes
Inline
Side-by-side
src/multibody/model.hpp
View file @
d42beb9e
...
...
@@ -27,7 +27,6 @@
#include
"pinocchio/multibody/fwd.hpp"
#include
"pinocchio/multibody/frame.hpp"
#include
"pinocchio/multibody/joint/joint.hpp"
#include
"pinocchio/tools/string-generator.hpp"
#include
<iostream>
#include
<Eigen/Cholesky>
...
...
@@ -99,14 +98,18 @@ namespace se3
/// \brief Vector of operational frames registered on the model.
std
::
vector
<
Frame
>
frames
;
/// \brief Vector of subtrees
/// subtree[j] corresponds to the subtree supported by the joint j.
std
::
vector
<
IndexVector
>
subtrees
;
/// \brief Spatial gravity
/// \brief Spatial gravity
of the model.
Motion
gravity
;
/// \brief Default 3D gravity vector (=(0,0,-9.81)).
static
const
Eigen
::
Vector3d
gravity981
;
/// \brief Default constructor
/// \brief Default constructor
. Builds an empty model with no joints.
Model
()
:
nq
(
0
)
,
nv
(
0
)
...
...
src/multibody/model.hxx
View file @
d42beb9e
...
...
@@ -20,6 +20,7 @@
#define __se3_model_hxx__
#include
"pinocchio/spatial/fwd.hpp"
#include
"pinocchio/tools/string-generator.hpp"
#include
<boost/bind.hpp>
...
...
@@ -31,10 +32,10 @@ namespace se3
{
os
<<
"Nb bodies = "
<<
model
.
nbody
<<
" (nq="
<<
model
.
nq
<<
",nv="
<<
model
.
nv
<<
")"
<<
std
::
endl
;
for
(
Model
::
Index
i
=
0
;
i
<
(
Model
::
Index
)(
model
.
nbody
);
++
i
)
{
os
<<
" Joint "
<<
model
.
names
[
i
]
<<
": parent="
<<
model
.
parents
[
i
]
<<
std
::
endl
;
}
{
os
<<
" Joint "
<<
model
.
names
[
i
]
<<
": parent="
<<
model
.
parents
[
i
]
<<
std
::
endl
;
}
return
os
;
}
...
...
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