Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
Crocoddyl
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
Pep Martí Saumell
Crocoddyl
Commits
bf5d3915
Commit
bf5d3915
authored
5 years ago
by
Maximilien Naveau
Browse files
Options
Downloads
Patches
Plain Diff
[code format]
parent
ee7e1711
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
bindings/python/crocoddyl/core/numdiff/action.hpp
+4
-5
4 additions, 5 deletions
bindings/python/crocoddyl/core/numdiff/action.hpp
include/crocoddyl/core/numdiff/action.hpp
+10
-10
10 additions, 10 deletions
include/crocoddyl/core/numdiff/action.hpp
with
14 additions
and
15 deletions
bindings/python/crocoddyl/core/numdiff/action.hpp
+
4
−
5
View file @
bf5d3915
...
...
@@ -19,11 +19,10 @@ namespace bp = boost::python;
void
exposeActionNumDiff
()
{
bp
::
class_
<
ActionModelNumDiff
,
bp
::
bases
<
ActionModelAbstract
>
>
(
"ActionModelNumDiff"
,
"Abstract class for computing calcDiff by using numerical differentiation.
\n\n
"
,
bp
::
init
<
ActionModelAbstract
&>
(
bp
::
args
(
" self"
,
" model"
),
"Initialize the action model NumDiff.
\n\n
"
":param model: action model where we compute the derivatives through NumDiff"
)[
bp
::
with_custodian_and_ward
<
1
,
2
>
()])
bp
::
init
<
ActionModelAbstract
&>
(
bp
::
args
(
" self"
,
" model"
),
"Initialize the action model NumDiff.
\n\n
"
":param model: action model where we compute the derivatives through NumDiff"
)
[
bp
::
with_custodian_and_ward
<
1
,
2
>
()])
.
def
(
"calc"
,
&
ActionModelNumDiff
::
calc_wrap
,
ActionModel_calc_wraps
(
bp
::
args
(
" self"
,
" data"
,
" x"
,
" u=None"
),
"Compute the next state and cost value.
\n\n
"
...
...
This diff is collapsed.
Click to expand it.
include/crocoddyl/core/numdiff/action.hpp
+
10
−
10
View file @
bf5d3915
...
...
@@ -66,7 +66,7 @@ class ActionModelNumDiff : public ActionModelAbstract {
*/
void
calc
(
const
boost
::
shared_ptr
<
ActionDataAbstract
>&
data
,
const
Eigen
::
Ref
<
const
Eigen
::
VectorXd
>&
x
,
const
Eigen
::
Ref
<
const
Eigen
::
VectorXd
>&
u
);
/**
* @brief @copydoc ActionDataAbstract::calcDiff()
*/
...
...
@@ -75,30 +75,30 @@ class ActionModelNumDiff : public ActionModelAbstract {
/**
* @brief Create a Data object from the given model.
*
* @return boost::shared_ptr<ActionDataAbstract>
*
* @return boost::shared_ptr<ActionDataAbstract>
*/
boost
::
shared_ptr
<
ActionDataAbstract
>
createData
();
/**
* @brief Get the model_ object
*
* @return ActionModelAbstract&
*
* @return ActionModelAbstract&
*/
ActionModelAbstract
&
get_model
()
const
;
/**
* @brief Get the disturbance_ object
*
* @return const double&
*
* @return const double&
*/
const
double
&
get_disturbance
()
const
;
/**
* @brief Identify if the Gauss approximation is going to be used or not.
*
* @return true
* @return false
*
* @return true
* @return false
*/
bool
get_with_gauss_approx
();
...
...
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