Skip to content

Commit

Permalink
Interpret call_services_in_new_thread as boolean (#857)
Browse files Browse the repository at this point in the history
  • Loading branch information
rwhitney456 authored Sep 26, 2023
1 parent 575a807 commit 98909f1
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,9 +53,11 @@ def __init__(self, protocol):
Capability.__init__(self, protocol)

# Register the operations that this capability provides
call_services_in_new_thread = protocol.node_handle.get_parameter(
"call_services_in_new_thread"
).get_parameter_value()
call_services_in_new_thread = (
protocol.node_handle.get_parameter("call_services_in_new_thread")
.get_parameter_value()
.bool_value
)
if call_services_in_new_thread:
# Calls the service in a separate thread so multiple services can be processed simultaneously.
protocol.node_handle.get_logger().info("Calling services in new thread")
Expand Down

0 comments on commit 98909f1

Please sign in to comment.