Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Stack Of Tasks
pinocchio
Commits
a4b392e2
Verified
Commit
a4b392e2
authored
Nov 08, 2018
by
Justin Carpentier
Browse files
multibody/joint: fix bug for dimension of Dynamic joint
parent
ed2b1941
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/joint/joint-base.hpp
View file @
a4b392e2
...
...
@@ -325,14 +325,14 @@ struct CastType< NewScalar, JointModelTpl<Scalar,Options> > \
jointConfigSelector
(
const
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
derived
().
jointConfigSelector_impl
(
a
);
}
template
<
typename
D
>
typename
SizeDepType
<
NQ
>::
template
SegmentReturn
<
D
>
::
ConstType
jointConfigSelector_impl
(
const
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
a
.
template
segment
<
NQ
>(
i_q
);
}
jointConfigSelector_impl
(
const
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
a
.
template
segment
<
NQ
>(
i_q
,
nq
()
);
}
// Non-const access
template
<
typename
D
>
typename
SizeDepType
<
NQ
>::
template
SegmentReturn
<
D
>
::
Type
jointConfigSelector
(
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
derived
().
jointConfigSelector_impl
(
a
);
}
template
<
typename
D
>
typename
SizeDepType
<
NQ
>::
template
SegmentReturn
<
D
>
::
Type
jointConfigSelector_impl
(
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
a
.
template
segment
<
NQ
>(
i_q
);
}
jointConfigSelector_impl
(
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
a
.
template
segment
<
NQ
>(
i_q
,
nq
()
);
}
/* Acces to dedicated segment in robot config velocity space. */
// Const access
...
...
@@ -341,40 +341,40 @@ struct CastType< NewScalar, JointModelTpl<Scalar,Options> > \
jointVelocitySelector
(
const
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
derived
().
jointVelocitySelector_impl
(
a
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
SegmentReturn
<
D
>
::
ConstType
jointVelocitySelector_impl
(
const
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
a
.
template
segment
<
NV
>(
i_v
);
}
jointVelocitySelector_impl
(
const
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
a
.
template
segment
<
NV
>(
i_v
,
nv
()
);
}
// Non-const access
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
SegmentReturn
<
D
>
::
Type
jointVelocitySelector
(
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
derived
().
jointVelocitySelector_impl
(
a
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
SegmentReturn
<
D
>
::
Type
jointVelocitySelector_impl
(
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
a
.
template
segment
<
NV
>(
i_v
);
}
jointVelocitySelector_impl
(
Eigen
::
MatrixBase
<
D
>&
a
)
const
{
return
a
.
template
segment
<
NV
>(
i_v
,
nv
()
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
ColsReturn
<
D
>
::
ConstType
jointCols
(
const
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
derived
().
jointCols_impl
(
A
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
ColsReturn
<
D
>
::
ConstType
jointCols_impl
(
const
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
A
.
template
middleCols
<
NV
>(
i_v
);
}
jointCols_impl
(
const
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
A
.
template
middleCols
<
NV
>(
i_v
,
nv
()
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
ColsReturn
<
D
>
::
Type
jointCols
(
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
derived
().
jointCols_impl
(
A
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
ColsReturn
<
D
>
::
Type
jointCols_impl
(
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
A
.
template
middleCols
<
NV
>(
i_v
);
}
jointCols_impl
(
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
A
.
template
middleCols
<
NV
>(
i_v
,
nv
()
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
RowsReturn
<
D
>
::
ConstType
jointRows
(
const
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
derived
().
jointRows_impl
(
A
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
RowsReturn
<
D
>
::
ConstType
jointRows_impl
(
const
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
A
.
template
middleRows
<
NV
>(
i_v
);
}
jointRows_impl
(
const
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
A
.
template
middleRows
<
NV
>(
i_v
,
nv
()
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
RowsReturn
<
D
>
::
Type
jointRows
(
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
derived
().
jointRows_impl
(
A
);
}
template
<
typename
D
>
typename
SizeDepType
<
NV
>::
template
RowsReturn
<
D
>
::
Type
jointRows_impl
(
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
A
.
template
middleRows
<
NV
>(
i_v
);
}
jointRows_impl
(
Eigen
::
MatrixBase
<
D
>&
A
)
const
{
return
A
.
template
middleRows
<
NV
>(
i_v
,
nv
()
);
}
/// \brief Returns a block of dimension nv()xnv() located at position i_v,i_v in the matrix Mat
template
<
typename
D
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a 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