Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
2
210910794
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package Registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Summer2021
210910794
Commits
9c1524e9
Commit
9c1524e9
authored
5 years ago
by
bpwilcox
Browse files
Options
Downloads
Patches
Plain Diff
fix and re-enable goal checker test
parent
f5f2f89d
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
nav2_dwb_controller/dwb_plugins/test/CMakeLists.txt
+2
-2
2 additions, 2 deletions
nav2_dwb_controller/dwb_plugins/test/CMakeLists.txt
nav2_dwb_controller/dwb_plugins/test/goal_checker.cpp
+6
-2
6 additions, 2 deletions
nav2_dwb_controller/dwb_plugins/test/goal_checker.cpp
with
8 additions
and
4 deletions
nav2_dwb_controller/dwb_plugins/test/CMakeLists.txt
+
2
−
2
View file @
9c1524e9
ament_add_gtest
(
vtest velocity_iterator_test.cpp
)
ament_add_gtest
(
vtest velocity_iterator_test.cpp
)
#
ament_add_gtest(goal_checker goal_checker.cpp)
ament_add_gtest
(
goal_checker goal_checker.cpp
)
#
target_link_libraries(goal_checker simple_goal_checker stopped_goal_checker)
target_link_libraries
(
goal_checker simple_goal_checker stopped_goal_checker
)
ament_add_gtest
(
twist_gen_test twist_gen.cpp
)
ament_add_gtest
(
twist_gen_test twist_gen.cpp
)
target_link_libraries
(
twist_gen_test standard_traj_generator
)
target_link_libraries
(
twist_gen_test standard_traj_generator
)
This diff is collapsed.
Click to expand it.
nav2_dwb_controller/dwb_plugins/test/goal_checker.cpp
+
6
−
2
View file @
9c1524e9
...
@@ -38,6 +38,8 @@
...
@@ -38,6 +38,8 @@
#include
"gtest/gtest.h"
#include
"gtest/gtest.h"
#include
"dwb_plugins/simple_goal_checker.hpp"
#include
"dwb_plugins/simple_goal_checker.hpp"
#include
"dwb_plugins/stopped_goal_checker.hpp"
#include
"dwb_plugins/stopped_goal_checker.hpp"
#include
"nav_2d_utils/conversions.hpp"
#include
"nav2_util/lifecycle_node.hpp"
using
dwb_plugins
::
SimpleGoalChecker
;
using
dwb_plugins
::
SimpleGoalChecker
;
using
dwb_plugins
::
StoppedGoalChecker
;
using
dwb_plugins
::
StoppedGoalChecker
;
...
@@ -61,9 +63,11 @@ void checkMacro(
...
@@ -61,9 +63,11 @@ void checkMacro(
v
.
y
=
yv
;
v
.
y
=
yv
;
v
.
theta
=
thetav
;
v
.
theta
=
thetav
;
if
(
expected_result
)
{
if
(
expected_result
)
{
EXPECT_TRUE
(
gc
.
isGoalReached
(
pose0
,
pose1
,
v
));
EXPECT_TRUE
(
gc
.
isGoalReached
(
nav_2d_utils
::
pose2DToPose
(
pose0
),
nav_2d_utils
::
pose2DToPose
(
pose1
),
nav_2d_utils
::
twist2Dto3D
(
v
)));
}
else
{
}
else
{
EXPECT_FALSE
(
gc
.
isGoalReached
(
pose0
,
pose1
,
v
));
EXPECT_FALSE
(
gc
.
isGoalReached
(
nav_2d_utils
::
pose2DToPose
(
pose0
),
nav_2d_utils
::
pose2DToPose
(
pose1
),
nav_2d_utils
::
twist2Dto3D
(
v
)));
}
}
}
}
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
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