Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pinocchio
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
Stack Of Tasks
pinocchio
Commits
6826f6bc
Verified
Commit
6826f6bc
authored
5 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
core: minor renaming
parent
73d64e20
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
src/multibody/visitor.hpp
+18
-18
18 additions, 18 deletions
src/multibody/visitor.hpp
with
18 additions
and
18 deletions
src/multibody/visitor.hpp
+
18
−
18
View file @
6826f6bc
//
// Copyright (c) 2015
,
201
8
CNRS
// Copyright (c) 2015
-
201
9
CNRS
INRIA
// Copyright (c) 2015 Wandercraft, 86 rue de Paris 91400 Orsay, France.
//
...
...
@@ -51,7 +51,7 @@ namespace pinocchio
JointDataTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
jdata
,
ArgsTmp
args
)
{
InternalVisitor
<
JointModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
,
ArgsTmp
>
visitor
(
jdata
,
args
);
InternalVisitor
ModelAndData
<
JointModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
,
ArgsTmp
>
visitor
(
jdata
,
args
);
return
boost
::
apply_visitor
(
visitor
,
jmodel
);
}
...
...
@@ -59,16 +59,16 @@ namespace pinocchio
static
ReturnType
run
(
const
JointModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
jmodel
,
JointDataTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
jdata
)
{
InternalVisitor
<
JointModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
,
NoArg
>
visitor
(
jdata
);
InternalVisitor
ModelAndData
<
JointModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
,
NoArg
>
visitor
(
jdata
);
return
boost
::
apply_visitor
(
visitor
,
jmodel
);
}
template
<
typename
JointModelDerived
,
typename
ArgsTmp
>
static
ReturnType
run
(
const
JointModelBase
<
JointModelDerived
>
&
jmodel
,
typename
JointModelBase
<
JointModelDerived
>::
JointDataDerived
&
jdata
,
typename
JointModelBase
<
JointModelDerived
>::
JointDataDerived
&
jdata
,
ArgsTmp
args
)
{
InternalVisitor
<
JointModelDerived
,
ArgsTmp
>
visitor
(
jdata
,
args
);
InternalVisitor
ModelAndData
<
JointModelDerived
,
ArgsTmp
>
visitor
(
jdata
,
args
);
return
visitor
(
jmodel
.
derived
());
}
...
...
@@ -76,7 +76,7 @@ namespace pinocchio
static
ReturnType
run
(
const
JointModelBase
<
JointModelDerived
>
&
jmodel
,
typename
JointModelBase
<
JointModelDerived
>::
JointDataDerived
&
jdata
)
{
InternalVisitor
<
JointModelDerived
,
NoArg
>
visitor
(
jdata
);
InternalVisitor
ModelAndData
<
JointModelDerived
,
NoArg
>
visitor
(
jdata
);
return
visitor
(
jmodel
.
derived
());
}
...
...
@@ -84,14 +84,14 @@ namespace pinocchio
static
ReturnType
run
(
const
JointModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
jmodel
,
ArgsTmp
args
)
{
ModelOnly
InternalVisitor
<
ArgsTmp
>
visitor
(
args
);
InternalVisitor
Model
<
ArgsTmp
>
visitor
(
args
);
return
boost
::
apply_visitor
(
visitor
,
jmodel
);
}
template
<
typename
Scalar
,
int
Options
,
template
<
typename
,
int
>
class
JointCollectionTpl
>
static
ReturnType
run
(
const
JointModelTpl
<
Scalar
,
Options
,
JointCollectionTpl
>
&
jmodel
)
{
ModelOnly
InternalVisitor
<
NoArg
>
visitor
;
InternalVisitor
Model
<
NoArg
>
visitor
;
return
boost
::
apply_visitor
(
visitor
,
jmodel
);
}
...
...
@@ -99,26 +99,26 @@ namespace pinocchio
static
ReturnType
run
(
const
JointModelBase
<
JointModelDerived
>
&
jmodel
,
ArgsTmp
args
)
{
ModelOnly
InternalVisitor
<
ArgsTmp
>
visitor
(
args
);
InternalVisitor
Model
<
ArgsTmp
>
visitor
(
args
);
return
visitor
(
jmodel
.
derived
());
}
template
<
typename
JointModelDerived
>
static
ReturnType
run
(
const
JointModelBase
<
JointModelDerived
>
&
jmodel
)
{
ModelOnly
InternalVisitor
<
NoArg
>
visitor
;
InternalVisitor
Model
<
NoArg
>
visitor
;
return
visitor
(
jmodel
.
derived
());
}
private
:
template
<
typename
JointModel
,
typename
ArgType
>
struct
InternalVisitor
struct
InternalVisitor
ModelAndData
:
public
boost
::
static_visitor
<
ReturnType
>
{
typedef
typename
JointModel
::
JointDataDerived
JointData
;
InternalVisitor
(
JointData
&
jdata
,
ArgType
args
)
InternalVisitor
ModelAndData
(
JointData
&
jdata
,
ArgType
args
)
:
jdata
(
jdata
),
args
(
args
)
{}
...
...
@@ -138,12 +138,12 @@ namespace pinocchio
};
template
<
typename
JointModel
>
struct
InternalVisitor
<
JointModel
,
NoArg
>
struct
InternalVisitor
ModelAndData
<
JointModel
,
NoArg
>
:
public
boost
::
static_visitor
<
ReturnType
>
{
typedef
typename
JointModel
::
JointDataDerived
JointData
;
InternalVisitor
(
JointData
&
jdata
)
InternalVisitor
ModelAndData
(
JointData
&
jdata
)
:
jdata
(
jdata
)
{}
...
...
@@ -160,9 +160,9 @@ namespace pinocchio
};
template
<
typename
ArgType
,
typename
Dummy
=
void
>
struct
ModelOnly
InternalVisitor
:
public
boost
::
static_visitor
<
ReturnType
>
struct
InternalVisitor
Model
:
public
boost
::
static_visitor
<
ReturnType
>
{
ModelOnly
InternalVisitor
(
ArgType
args
)
InternalVisitor
Model
(
ArgType
args
)
:
args
(
args
)
{}
...
...
@@ -180,10 +180,10 @@ namespace pinocchio
};
template
<
typename
Dummy
>
struct
ModelOnly
InternalVisitor
<
NoArg
,
Dummy
>
struct
InternalVisitor
Model
<
NoArg
,
Dummy
>
:
public
boost
::
static_visitor
<
ReturnType
>
{
ModelOnly
InternalVisitor
()
{}
InternalVisitor
Model
()
{}
template
<
typename
JointModelDerived
>
ReturnType
operator
()(
const
JointModelBase
<
JointModelDerived
>
&
jmodel
)
const
...
...
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