Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Pierre Fernbach
tsid
Commits
eeefef7b
Unverified
Commit
eeefef7b
authored
May 03, 2019
by
Andrea Del Prete
Committed by
GitHub
May 03, 2019
Browse files
Merge pull request #47 from proyan/devel
[bindings][formulations] add binding for removeFromHqpData
parents
707745a6
e2c82719
Changes
1
Hide whitespace changes
Inline
Side-by-side
bindings/python/formulations/formulation.hpp
View file @
eeefef7b
...
...
@@ -63,6 +63,7 @@ namespace tsid
.
def
(
"addRigidContact"
,
&
InvDynPythonVisitor
::
addRigidContactPointWithPriorityLevel
,
bp
::
args
(
"contact"
,
"force_reg_weight"
,
"motion_weight"
,
"priority_level"
))
.
def
(
"removeTask"
,
&
InvDynPythonVisitor
::
removeTask
,
bp
::
args
(
"task_name"
,
"duration"
))
.
def
(
"removeRigidContact"
,
&
InvDynPythonVisitor
::
removeRigidContact
,
bp
::
args
(
"contact_name"
,
"duration"
))
.
def
(
"removeFromHqpData"
,
&
InvDynPythonVisitor
::
removeFromHqpData
,
bp
::
args
(
"constraint_name"
))
.
def
(
"computeProblemData"
,
&
InvDynPythonVisitor
::
computeProblemData
,
bp
::
args
(
"time"
,
"q"
,
"v"
))
.
def
(
"getActuatorForces"
,
&
InvDynPythonVisitor
::
getActuatorForces
,
bp
::
args
(
"HQPOutput"
))
...
...
@@ -108,7 +109,10 @@ namespace tsid
}
static
bool
removeRigidContact
(
T
&
self
,
const
std
::
string
&
contactName
,
double
transition_duration
){
return
self
.
removeRigidContact
(
contactName
,
transition_duration
);
}
}
static
bool
removeFromHqpData
(
T
&
self
,
const
std
::
string
&
constraintName
){
return
self
.
removeFromHqpData
(
constraintName
);
}
static
HQPDatas
computeProblemData
(
T
&
self
,
double
time
,
const
Eigen
::
VectorXd
&
q
,
const
Eigen
::
VectorXd
&
v
){
HQPDatas
Hqp
;
Hqp
.
set
(
self
.
computeProblemData
(
time
,
q
,
v
));
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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