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
Guilhem Saurel
pinocchio
Commits
eb916f1b
Commit
eb916f1b
authored
Sep 21, 2016
by
jcarpent
Browse files
[Python] Expose RNEA with external forces argument
parent
ea646e7f
Changes
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/algorithm/expose-rnea.cpp
View file @
eb916f1b
...
...
@@ -30,6 +30,16 @@ namespace se3
{
return
rnea
(
*
model
,
*
data
,
q
,
v
,
a
);
}
static
Eigen
::
VectorXd
rnea_fext_proxy
(
const
ModelHandler
&
model
,
DataHandler
&
data
,
const
VectorXd_fx
&
q
,
const
VectorXd_fx
&
v
,
const
VectorXd_fx
&
a
,
const
std
::
vector
<
Force
>
&
fext
)
{
return
rnea
(
*
model
,
*
data
,
q
,
v
,
a
,
fext
);
}
static
Eigen
::
VectorXd
nle_proxy
(
const
ModelHandler
&
model
,
DataHandler
&
data
,
...
...
@@ -47,7 +57,16 @@ namespace se3
"Velocity v (size Model::nv)"
,
"Acceleration a (size Model::nv)"
),
"Compute the RNEA, put the result in Data and return it."
);
bp
::
def
(
"rnea"
,
rnea_fext_proxy
,
bp
::
args
(
"Model"
,
"Data"
,
"Configuration q (size Model::nq)"
,
"Velocity v (size Model::nv)"
,
"Acceleration a (size Model::nv)"
,
"Vector of external forces expressed in the local frame of each joint (size Model::njoints)"
),
"Compute the RNEA with external forces, put the result in Data and return it."
);
bp
::
def
(
"nle"
,
nle_proxy
,
bp
::
args
(
"Model"
,
"Data"
,
"Configuration q (size Model::nq)"
,
...
...
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