Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
laser_scan_utils
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
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
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
labrobotica
algorithms
laser_scan_utils
Commits
ffbed96c
Commit
ffbed96c
authored
3 years ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
undef CSM macros interfering with std
parent
5556f9e9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Pipeline
#8085
passed
3 years ago
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/icp.h
+12
-14
12 additions, 14 deletions
src/icp.h
with
12 additions
and
14 deletions
src/icp.h
+
12
−
14
View file @
ffbed96c
...
...
@@ -26,29 +26,27 @@
#include
<chrono>
#include
<random>
#include
<csm/csm_all.h>
// using namespace CSM;
#undef max //undefine macro of csm that may interfere with std::max
#undef min //undefine macro of csm that may interfere with std::min
namespace
laserscanutils
{
struct
icpOutput
{
bool
valid
;
/** i
f the result is valid
*/
Eigen
::
Vector3s
res_transf
;
Eigen
::
Matrix3s
res_covar
;
int
nvalid
;
/**
Number of valid correspondence in the
end */
double
error
;
/**
Total correspondence error
*/
bool
valid
;
// I
f the result is valid
Eigen
::
Vector3s
res_transf
;
// Transformation found
Eigen
::
Matrix3s
res_covar
;
// Covariance of the transformation
int
nvalid
;
//
Number of valid correspondence
s
in the
match
double
error
;
//
Total correspondence error
};
struct
icpParams
{
bool
verbose
;
// prints debug messages
bool
verbose
;
// prints debug messages
// Algorithm options ---------------------------------------------------
bool
use_point_to_line_distance
;
// use PlICP (true) or use vanilla ICP (false).
/** Maximum angular displacement between scans (deg)*/
double
max_angular_correction_deg
;
/** Maximum translation between scans (m) */
double
max_linear_correction
;
double
max_angular_correction_deg
;
// Maximum angular displacement between scans (deg)
double
max_linear_correction
;
// Maximum translation between scans (m)
// Stopping criteria
int
max_iterations
;
// maximum iterations
...
...
@@ -63,12 +61,12 @@ struct icpParams
bool
debug_verify_tricks
;
// Restart algorithm
bool
restart
;
bool
restart
;
// Enable restarting
double
restart_threshold_mean_error
;
// Threshold for restarting
double
restart_dt
;
// Displacement for restarting
double
restart_dtheta
;
// Displacement for restarting
// Discarding points or correpondences ---------------------------------------------------
// Discarding points or corre
s
pondences ---------------------------------------------------
/** discard rays outside of this interval */
double
min_reading
,
max_reading
;
/** Percentage of correspondences to consider: if 0.9,
...
...
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