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
2cbcc821
Commit
2cbcc821
authored
11 months ago
by
Joan Vallvé Navarro
Browse files
Options
Downloads
Patches
Plain Diff
[skip ci] small changes
parent
1c5d27d2
No related branches found
No related tags found
No related merge requests found
Pipeline
#18696
skipped
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
CMakeLists.txt
+1
-9
1 addition, 9 deletions
CMakeLists.txt
src/icp.cpp
+1
-1
1 addition, 1 deletion
src/icp.cpp
test/gtest_icp.cpp
+2
-1
2 additions, 1 deletion
test/gtest_icp.cpp
with
4 additions
and
11 deletions
CMakeLists.txt
+
1
−
9
View file @
2cbcc821
...
...
@@ -39,14 +39,6 @@ IF(NOT BUILD_DEMOS)
OPTION
(
BUILD_DEMOS
"Build demos"
ON
)
ENDIF
(
NOT BUILD_DEMOS
)
if
(
BUILD_TESTS
)
# Enables testing for this directory and below.
# Note that ctest expects to find a test file in the build directory root.
# Therefore, this command should be in the source directory root.
#include(CTest) # according to http://public.kitware.com/pipermail/cmake/2012-June/050853.html
enable_testing
()
endif
()
# ============ DEPENDENCIES ============
FIND_PACKAGE
(
Eigen3 3.3 REQUIRED CONFIG
)
FIND_PACKAGE
(
falkolib QUIET
)
...
...
@@ -171,7 +163,7 @@ ENDIF(BUILD_DEMOS)
#Build tests
IF
(
BUILD_TESTS
)
MESSAGE
(
"Building tests."
)
set
(
_LASER_SCAN_UTILS_ROOT_DIR
${
CMAKE_SOURCE_DIR
}
)
enable_testing
(
)
add_subdirectory
(
test
)
ENDIF
(
BUILD_TESTS
)
...
...
This diff is collapsed.
Click to expand it.
src/icp.cpp
+
1
−
1
View file @
2cbcc821
...
...
@@ -210,7 +210,7 @@ icpOutput ICP::align(const LaserScan &_current_ls,
}
while
(
not
result
.
valid
and
result
.
attempts
<
_icp_params
.
icp_attempts
);
// if valid, copy values and grow covariance
// if valid, copy
transformation
values and grow covariance
if
(
result
.
valid
)
{
result
.
res_transf
(
0
)
=
csm_output
.
x
[
0
];
...
...
This diff is collapsed.
Click to expand it.
test/gtest_icp.cpp
+
2
−
1
View file @
2cbcc821
...
...
@@ -26,7 +26,7 @@
using
namespace
laserscanutils
;
int
N
=
50
;
int
n_attempts
=
10
;
unsigned
int
n_attempts
=
10
;
const
Eigen
::
Vector2d
A
=
Eigen
::
Vector2d
::
Zero
();
const
Eigen
::
Vector2d
B
=
(
Eigen
::
Vector2d
()
<<
0
,
40
).
finished
();
...
...
@@ -422,6 +422,7 @@ TEST(TestIcp, TestIcp10)
auto
icp_params
=
icp_params_default
;
icp_params
.
icp_attempts
=
n_attempts
;
icp_params
.
verbose
=
true
;
double
pert
=
0.0
;
...
...
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