Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
laser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Model registry
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor 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
mobile_robotics
wolf_projects
wolf_lib
plugins
laser
Commits
f75c1241
Commit
f75c1241
authored
5 years ago
by
Joan Solà Ortega
Browse files
Options
Downloads
Patches
Plain Diff
Add laser_tools.h with some helper fcns
parent
cb08d23c
No related branches found
No related tags found
2 merge requests
!30
Release after RAL
,
!29
After 2nd RAL submission
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
CMakeLists.txt
+1
-0
1 addition, 0 deletions
CMakeLists.txt
include/laser/math/laser_tools.h
+49
-0
49 additions, 0 deletions
include/laser/math/laser_tools.h
with
50 additions
and
0 deletions
CMakeLists.txt
+
1
−
0
View file @
f75c1241
...
@@ -146,6 +146,7 @@ INCLUDE_DIRECTORIES(${laser_scan_utils_INCLUDE_DIRS})
...
@@ -146,6 +146,7 @@ INCLUDE_DIRECTORIES(${laser_scan_utils_INCLUDE_DIRS})
SET
(
HDRS_COMMON
SET
(
HDRS_COMMON
)
)
SET
(
HDRS_MATH
SET
(
HDRS_MATH
include/laser/math/laser_tools.h
)
)
SET
(
HDRS_UTILS
SET
(
HDRS_UTILS
)
)
...
...
This diff is collapsed.
Click to expand it.
include/laser/math/laser_tools.h
0 → 100644
+
49
−
0
View file @
f75c1241
/*
* laser_tools.h
*
* Created on: Jun 17, 2020
* Author: jsola
*/
#ifndef INCLUDE_LASER_MATH_LASER_TOOLS_H_
#define INCLUDE_LASER_MATH_LASER_TOOLS_H_
#include
<core/common/wolf.h>
#include
<core/state_block/state_composite.h>
#include
<laser_scan_utils/laser_scan_utils.h>
#include
<laser_scan_utils/icp.h>
using
namespace
Eigen
;
namespace
wolf
{
namespace
laser
{
inline
Eigen
::
Isometry2d
trf2isometry
(
Vector2d
translation
,
Vector1d
rotation
)
{
Isometry2d
T
=
Translation2d
(
translation
)
*
Rotation2Dd
(
rotation
(
0
));
return
T
;
}
inline
Eigen
::
Isometry2d
trf2isometry
(
Vector3d
trf
)
{
Isometry2d
T
=
Translation2d
(
trf
.
head
<
2
>
())
*
Rotation2Dd
(
trf
(
2
));
return
T
;
}
inline
Eigen
::
Isometry2d
trf2isometry
(
VectorComposite
trf
)
{
return
trf2isometry
(
trf
.
at
(
'P'
),
trf
.
at
(
'O'
));
}
}
// namespace laser
}
// namespace wolf
#endif
/* INCLUDE_LASER_MATH_LASER_TOOLS_H_ */
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