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
cf530044
Commit
cf530044
authored
5 years ago
by
Matthew Hansen
Committed by
Matt Hansen
5 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add QOS policies to system test
parent
c79b4328
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
nav2_system_tests/src/system/test_system_node.py
+11
-3
11 additions, 3 deletions
nav2_system_tests/src/system/test_system_node.py
with
11 additions
and
3 deletions
nav2_system_tests/src/system/test_system_node.py
+
11
−
3
View file @
cf530044
...
...
@@ -23,6 +23,8 @@ from geometry_msgs.msg import PoseWithCovarianceStamped
from
lifecycle_msgs.srv
import
GetState
import
rclpy
from
rclpy.node
import
Node
from
rclpy.qos
import
QoSDurabilityPolicy
,
QoSHistoryPolicy
,
QoSReliabilityPolicy
from
rclpy.qos
import
QoSProfile
class
NavTester
(
Node
):
...
...
@@ -30,11 +32,17 @@ class NavTester(Node):
def
__init__
(
self
):
super
().
__init__
(
'
nav2_tester
'
)
self
.
initial_pose_pub
=
self
.
create_publisher
(
PoseWithCovarianceStamped
,
'
/initialpose
'
)
self
.
goal_pub
=
self
.
create_publisher
(
PoseStamped
,
'
/goal_pose
'
)
'
/initialpose
'
,
10
)
self
.
goal_pub
=
self
.
create_publisher
(
PoseStamped
,
'
/goal_pose
'
,
10
)
pose_qos
=
QoSProfile
(
durability
=
QoSDurabilityPolicy
.
RMW_QOS_POLICY_DURABILITY_TRANSIENT_LOCAL
,
reliability
=
QoSReliabilityPolicy
.
RMW_QOS_POLICY_RELIABILITY_RELIABLE
,
history
=
QoSHistoryPolicy
.
RMW_QOS_POLICY_HISTORY_KEEP_LAST
,
depth
=
1
)
self
.
model_pose_sub
=
self
.
create_subscription
(
PoseWithCovarianceStamped
,
'
/amcl_pose
'
,
self
.
poseCallback
)
'
/amcl_pose
'
,
self
.
poseCallback
,
pose_qos
)
self
.
initial_pose_received
=
False
def
setInitialPose
(
self
,
pose
):
...
...
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