Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Simox
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Florian Leander Singer
Simox
Commits
2046d8e4
Commit
2046d8e4
authored
4 years ago
by
Simon Ottenhaus
Browse files
Options
Downloads
Patches
Plain Diff
added TranslatePose(pose, x,y,z)
parent
2ae1912b
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
VirtualRobot/math/Helpers.cpp
+7
-0
7 additions, 0 deletions
VirtualRobot/math/Helpers.cpp
VirtualRobot/math/Helpers.h
+1
-0
1 addition, 0 deletions
VirtualRobot/math/Helpers.h
with
8 additions
and
0 deletions
VirtualRobot/math/Helpers.cpp
+
7
−
0
View file @
2046d8e4
...
...
@@ -304,6 +304,10 @@ namespace math
Position
(
p
)
+=
offset
;
return
p
;
}
Eigen
::
Matrix4f
math
::
Helpers
::
TranslatePose
(
const
Eigen
::
Matrix4f
&
pose
,
float
x
,
float
y
,
float
z
)
{
return
TranslatePose
(
pose
,
Eigen
::
Vector3f
(
x
,
y
,
z
));
}
Eigen
::
Matrix4f
Helpers
::
TranslateAndRotatePose
(
const
Eigen
::
Matrix4f
&
pose
,
const
Eigen
::
Vector3f
&
offset
,
const
Eigen
::
Matrix3f
&
rotation
)
{
...
...
@@ -503,4 +507,7 @@ namespace math
}
return
poses
;
}
}
This diff is collapsed.
Click to expand it.
VirtualRobot/math/Helpers.h
+
1
−
0
View file @
2046d8e4
...
...
@@ -164,6 +164,7 @@ namespace math
/// Translate the given pose by the given offset.
static
Eigen
::
Matrix4f
TranslatePose
(
const
Eigen
::
Matrix4f
&
pose
,
const
Eigen
::
Vector3f
&
offset
);
static
Eigen
::
Matrix4f
TranslatePose
(
const
Eigen
::
Matrix4f
&
pose
,
float
x
,
float
y
,
float
z
);
static
Eigen
::
Matrix4f
TranslateAndRotatePose
(
const
Eigen
::
Matrix4f
&
pose
,
const
Eigen
::
Vector3f
&
offset
,
const
Eigen
::
Matrix3f
&
rotation
);
...
...
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