File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed
rosbridge_library/src/rosbridge_library/internal Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change 34
34
from typing import TYPE_CHECKING , Any , Callable , Optional
35
35
36
36
from rclpy .callback_groups import ReentrantCallbackGroup
37
- from rclpy .expand_topic_name import expand_topic_name
38
37
from rclpy .node import Node
39
38
from rosbridge_library .internal .message_conversion import (
40
39
extract_values ,
@@ -129,10 +128,10 @@ def call_service(
129
128
server_ready_timeout : float = 1.0 ,
130
129
server_response_timeout : float = 5.0 ,
131
130
) -> dict :
132
- # Given the service name, fetch the type and class of the service,
133
- # and a request instance
134
- service = expand_topic_name (service , node_handle .get_name (), node_handle .get_namespace ())
131
+ # Get the fully qualified service name with remappings applied
132
+ service = node_handle .resolve_service_name (service )
135
133
134
+ # Given the service name, fetch the type and class of the service, and a request instance
136
135
service_names_and_types = dict (node_handle .get_service_names_and_types ())
137
136
service_types = service_names_and_types .get (service )
138
137
if service_types is None :
You can’t perform that action at this time.
0 commit comments