Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
H
hpp-bezier-com-traj
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Guilhem Saurel
hpp-bezier-com-traj
Commits
a43fb2d9
Commit
a43fb2d9
authored
6 years ago
by
Pierre Fernbach
Browse files
Options
Downloads
Patches
Plain Diff
Add ComputeEndEffector to python API
parent
838f100a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
python/bezier_com_traj.cpp
+21
-0
21 additions, 0 deletions
python/bezier_com_traj.cpp
with
21 additions
and
0 deletions
python/bezier_com_traj.cpp
+
21
−
0
View file @
a43fb2d9
#include
"hpp/bezier-com-traj/solve.hh"
#include
"hpp/bezier-com-traj/solver/solver-abstract.hpp"
#include
"hpp/bezier-com-traj/solve_end_effector.hh"
#include
<eigenpy/memory.hpp>
#include
<eigenpy/eigenpy.hpp>
...
...
@@ -358,6 +359,25 @@ ResultDataCOMTraj* computeCOMTrajPointerChooseSolver(const ProblemData& pData, c
/** END computeCOMTraj **/
/** BEGIN end effector **/
struct
DummyPath
{
point3_t
operator
()(
double
/*u*/
)
const
{
return
point3_t
::
Zero
();
}
};
ResultDataCOMTraj
*
computeEndEffector
(
const
ProblemData
&
pData
,
const
double
time
){
ResultDataCOMTraj
res
=
solveEndEffector
<
DummyPath
>
(
pData
,
DummyPath
(),
time
,
0
);
return
new
ResultDataCOMTraj
(
res
);
}
/** END end effector **/
BOOST_PYTHON_MODULE
(
hpp_bezier_com_traj
)
{
...
...
@@ -467,6 +487,7 @@ BOOST_PYTHON_MODULE(hpp_bezier_com_traj)
def
(
"zeroStepCapturability"
,
&
zeroStepCapturabilityWithKinConstraints
,
return_value_policy
<
manage_new_object
>
());
def
(
"computeCOMTraj"
,
&
computeCOMTrajPointer
,
return_value_policy
<
manage_new_object
>
());
def
(
"computeCOMTraj"
,
&
computeCOMTrajPointerChooseSolver
,
return_value_policy
<
manage_new_object
>
());
def
(
"computeEndEffector"
,
&
computeEndEffector
,
return_value_policy
<
manage_new_object
>
());
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment