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
56e51c31
Verified
Commit
56e51c31
authored
Dec 15, 2019
by
Justin Carpentier
Browse files
joints: add equal operator to specifi Transform types
parent
d4e86952
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/multibody/joint/joint-prismatic.hpp
View file @
56e51c31
...
...
@@ -235,6 +235,11 @@ namespace pinocchio
ConstLinearRef
translation
()
const
{
return
CartesianAxis3
()
*
displacement
();
};
AngularType
rotation
()
const
{
return
AngularType
(
3
,
3
);
}
bool
isEqual
(
const
TransformPrismaticTpl
&
other
)
const
{
return
m_displacement
==
other
.
m_displacement
;
}
protected:
...
...
src/multibody/joint/joint-revolute.hpp
View file @
56e51c31
...
...
@@ -159,6 +159,11 @@ namespace pinocchio
return
m
;
}
bool
isEqual
(
const
TransformRevoluteTpl
&
other
)
const
{
return
m_cos
==
other
.
m_cos
&&
m_sin
==
other
.
m_sin
;
}
protected:
Scalar
m_sin
,
m_cos
;
...
...
src/multibody/joint/joint-translation.hpp
View file @
56e51c31
...
...
@@ -233,6 +233,11 @@ namespace pinocchio
AngularType
rotation
()
const
{
return
AngularType
(
3
,
3
);
}
bool
isEqual
(
const
TransformTranslationTpl
&
other
)
const
{
return
m_translation
==
other
.
m_translation
;
}
protected:
LinearType
m_translation
;
...
...
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