Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
liuhomewreckers
liu-home-wreckers
Commits
49a298e9
Commit
49a298e9
authored
Nov 30, 2022
by
Sebastian Olsson
Browse files
Commented out diagnostics ros msg to solve crashing
parent
af7bf9d9
Pipeline
#84060
failed with stage
in 2 minutes and 48 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/lhw_intelligence/lhw_intelligence/py_tree.py
View file @
49a298e9
...
...
@@ -11,7 +11,7 @@ from rclpy.node import Node
from
rclpy.action
import
ActionClient
import
os
from
diagnostic_msgs.msg._diagnostic_array
import
DiagnosticArray
#
from diagnostic_msgs.msg._diagnostic_array import DiagnosticArray
from
move_base_msgs.action
import
MoveBase
from
std_msgs.msg
import
String
,
Bool
from
sensor_msgs.msg
import
Range
...
...
@@ -84,7 +84,7 @@ class Py_Tree(Node):
self
.
entities_sub
=
self
.
create_subscription
(
Entities
,
'yolov5_entities'
,
self
.
entities_callback
,
10
)
self
.
head_touched_subscriber
=
self
.
create_subscription
(
HeadTouch
,
'head_touch'
,
self
.
head_touched_cb
,
10
)
self
.
sonar_front_subscriber
=
self
.
create_subscription
(
Range
,
'sonar/front'
,
self
.
sonar_front_cb
,
10
)
self
.
battery_sub
=
self
.
create_subscription
(
DiagnosticArray
,
"diagnostics"
,
self
.
battery_cb
,
10
)
#
self.battery_sub = self.create_subscription(DiagnosticArray, "diagnostics", self.battery_cb, 10)
self
.
is_talking_sub
=
self
.
create_subscription
(
Bool
,
"is_talking"
,
self
.
is_talking_cb
,
10
)
# TODO: Test with things running on Pepper
self
.
yes_no_sub
=
self
.
create_subscription
(
WordDetected
,
"word_detected"
,
self
.
yes_no_cb
,
10
)
...
...
Write
Preview
Supports
Markdown
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!
Cancel
Please
register
or
sign in
to comment