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
134bdf8f
Verified
Commit
134bdf8f
authored
Aug 09, 2018
by
Justin Carpentier
Committed by
Justin Carpentier
Oct 29, 2018
Browse files
[Multibody/Model] Make FilterFrame templated by Scalar,Options
parent
2c4e1845
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/multibody/model.hxx
View file @
134bdf8f
...
...
@@ -32,13 +32,19 @@ namespace se3
{
namespace
details
{
struct
FilterFrame
{
const
std
::
string
&
name
;
struct
FilterFrame
{
const
std
::
string
&
name
;
const
FrameType
&
typeMask
;
FilterFrame
(
const
std
::
string
&
name
,
const
FrameType
&
typeMask
)
:
name
(
name
),
typeMask
(
typeMask
)
{}
bool
operator
()(
const
Frame
&
frame
)
const
FilterFrame
(
const
std
::
string
&
name
,
const
FrameType
&
typeMask
)
:
name
(
name
),
typeMask
(
typeMask
)
{}
template
<
typename
Scalar
,
int
Options
>
bool
operator
()(
const
FrameTpl
<
Scalar
,
Options
>
&
frame
)
const
{
return
(
typeMask
&
frame
.
type
)
&&
(
name
==
frame
.
name
);
}
};
}
...
...
Write
Preview
Supports
Markdown
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