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
9d3433be
Verified
Commit
9d3433be
authored
6 years ago
by
Justin Carpentier
Browse files
Options
Downloads
Patches
Plain Diff
multibody/joint: add BlockReturn to SizeDepType helper
parent
0ff4170e
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/multibody/joint/joint-base.hpp
+18
-0
18 additions, 0 deletions
src/multibody/joint/joint-base.hpp
with
18 additions
and
0 deletions
src/multibody/joint/joint-base.hpp
+
18
−
0
View file @
9d3433be
...
...
@@ -154,18 +154,27 @@ struct CastType< NewScalar, JointModelTpl<Scalar,Options> > \
typedef
typename
Mat
::
template
FixedSegmentReturnType
<
NV
>
::
Type
Type
;
typedef
typename
Mat
::
template
ConstFixedSegmentReturnType
<
NV
>
::
Type
ConstType
;
};
template
<
class
Mat
>
struct
ColsReturn
{
typedef
typename
Mat
::
template
NColsBlockXpr
<
NV
>
::
Type
Type
;
typedef
typename
Mat
::
template
ConstNColsBlockXpr
<
NV
>
::
Type
ConstType
;
};
template
<
class
Mat
>
struct
RowsReturn
{
typedef
typename
Mat
::
template
NRowsBlockXpr
<
NV
>
::
Type
Type
;
typedef
typename
Mat
::
template
ConstNRowsBlockXpr
<
NV
>
::
Type
ConstType
;
};
template
<
class
Mat
>
struct
BlockReturn
{
typedef
Eigen
::
Block
<
Mat
,
NV
,
NV
>
Type
;
typedef
const
Eigen
::
Block
<
const
Mat
,
NV
,
NV
>
ConstType
;
};
};
template
<
>
...
...
@@ -177,18 +186,27 @@ struct CastType< NewScalar, JointModelTpl<Scalar,Options> > \
typedef
typename
Mat
::
SegmentReturnType
Type
;
typedef
typename
Mat
::
ConstSegmentReturnType
ConstType
;
};
template
<
class
Mat
>
struct
ColsReturn
{
typedef
typename
Mat
::
ColsBlockXpr
Type
;
typedef
typename
Mat
::
ConstColsBlockXpr
ConstType
;
};
template
<
class
Mat
>
struct
RowsReturn
{
typedef
typename
Mat
::
RowsBlockXpr
Type
;
typedef
typename
Mat
::
ConstRowsBlockXpr
ConstType
;
};
template
<
class
Mat
>
struct
BlockReturn
{
typedef
Eigen
::
Block
<
Mat
>
Type
;
typedef
const
Eigen
::
Block
<
const
Mat
>
ConstType
;
};
};
template
<
typename
Derived
>
...
...
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