Skip to content

Commit

Permalink
Merge pull request #12 from Wiktor-99/add_time_approximation_slope_param
Browse files Browse the repository at this point in the history
Add time_approximation_slope param
  • Loading branch information
Wiktor-99 authored Dec 26, 2024
2 parents 885f138 + a431267 commit f4b918b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion human_detector/human_detector/human_detector.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,13 +31,13 @@ def __init__(self):
self.model = PinholeCameraModel()
self.tf_broadcaster = TransformBroadcaster(self)
self.person_pose_estimator = None
self.time_approximation_slope = 0.05
self.camera_info = None

def on_configure(self, previous_state: LifecycleState):
self.get_logger().info("IN on_configure")
self.parameters = self.param_listener.get_params()
self.log_parameters()
self.time_approximation_slope = self.parameters.time_approximation_slope
self.person_pose_estimator = mp.solutions.pose.Pose(
min_detection_confidence=self.parameters.min_detection_confidence,
min_tracking_confidence=self.parameters.min_tracking_confidence,
Expand Down
5 changes: 5 additions & 0 deletions human_detector/human_detector/human_detector_parameters.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,3 +36,8 @@ human_detector_parameters:
invoked automatically on the next input image."
validation:
bounds<>: [0.0, 1.0]
time_approximation_slope:
type: double
default_value: 0.05
read_only: true
description: "Timer approximation slope for the msgs synchronization."

0 comments on commit f4b918b

Please sign in to comment.