Skip to content

Commit

Permalink
fix dynamic_reconfigure namespace #53
Browse files Browse the repository at this point in the history
  • Loading branch information
knorth55 committed Feb 5, 2021
1 parent 5e0c757 commit 66bc54e
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 3 deletions.
5 changes: 4 additions & 1 deletion python/coral_usb/face_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ def __init__(self, namespace='~'):
self.label_names = ['face']

# dynamic reconfigure
dyn_namespace = namespace
if namespace == '~':
dyn_namespace = ''
self.srv = Server(
EdgeTPUFaceDetectorConfig,
self.config_callback, namespace=namespace)
self.config_callback, namespace=dyn_namespace)
6 changes: 5 additions & 1 deletion python/coral_usb/human_pose_estimator.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,12 @@ def __init__(self, namespace='~'):
self.label_names = ['human']

# dynamic reconfigure
dyn_namespace = namespace
if namespace == '~':
dyn_namespace = ''
self.srv = Server(
EdgeTPUHumanPoseEstimatorConfig, self.config_callback)
EdgeTPUHumanPoseEstimatorConfig,
self.config_callback, namespace=dyn_namespace)

self.pub_pose = self.advertise(
namespace + 'output/poses', PeoplePoseArray, queue_size=1)
Expand Down
5 changes: 4 additions & 1 deletion python/coral_usb/object_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ def __init__(self, namespace='~'):
model_file, label_file, namespace)

# dynamic reconfigure
dyn_namespace = namespace
if namespace == '~':
dyn_namespace = ''
self.srv = Server(
EdgeTPUObjectDetectorConfig,
self.config_callback, namespace=namespace)
self.config_callback, namespace=dyn_namespace)

0 comments on commit 66bc54e

Please sign in to comment.