Skip to content

Commit

Permalink
rosapi: Don't start parameter services that aren't spun (backport #944)
Browse files Browse the repository at this point in the history
  • Loading branch information
bmartin427 authored and sea-bass committed Oct 3, 2024
1 parent 9f45b8e commit 21789aa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion rosapi/src/rosapi/params.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,9 @@ def init(parent_node_name):
parent_node_basename = parent_node_name.split("/")[-1]
param_node_name = f"{parent_node_basename}_params"
_node = rclpy.create_node(
param_node_name, cli_args=["--ros-args", "-r", f"__node:={param_node_name}"]
param_node_name,
cli_args=["--ros-args", "-r", f"__node:={param_node_name}"],
start_parameter_services=False,
)
_parent_node_name = get_absolute_node_name(parent_node_name)

Expand Down

0 comments on commit 21789aa

Please sign in to comment.