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
6f97b73f
Commit
6f97b73f
authored
8 years ago
by
Valenza Florian
Browse files
Options
Downloads
Patches
Plain Diff
[C++] Added isApprox in Motion
parent
98e6df60
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/spatial/motion.hpp
+8
-0
8 additions, 0 deletions
src/spatial/motion.hpp
with
8 additions
and
0 deletions
src/spatial/motion.hpp
+
8
−
0
View file @
6f97b73f
...
...
@@ -62,6 +62,9 @@ namespace se3
Derived_t
operator
-
(
const
Derived_t
&
v2
)
const
{
return
derived
().
__minus__
(
v2
);
}
Derived_t
&
operator
+=
(
const
Derived_t
&
v2
)
{
return
derived
().
__pequ__
(
v2
);
}
bool
isApprox
(
const
Derived_t
&
other
,
const
Scalar
&
prec
=
Eigen
::
NumTraits
<
Scalar
>::
dummy_precision
())
const
{
return
derived
().
isApprox_impl
(
other
,
prec
);}
Derived_t
se3Action
(
const
SE3
&
m
)
const
{
return
derived
().
se3Action_impl
(
m
);
}
Derived_t
se3ActionInverse
(
const
SE3
&
m
)
const
{
return
derived
().
se3ActionInverse_impl
(
m
);
}
...
...
@@ -203,6 +206,11 @@ namespace se3
angular_impl
().
cross
(
phi
.
angular_impl
())
+
linear_impl
().
cross
(
phi
.
linear_impl
())
);
}
bool
isApprox_impl
(
const
MotionTpl
&
m2
,
const
Scalar
&
prec
=
Eigen
::
NumTraits
<
Scalar
>::
dummy_precision
())
const
{
return
data
.
isApprox
(
m2
.
data
,
prec
);
}
MotionTpl
se3Action_impl
(
const
SE3
&
m
)
const
{
Vector3
Rw
(
static_cast
<
Vector3
>
(
m
.
rotation
()
*
angular_impl
()));
...
...
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