Skip to content

Commit f6a1821

Browse files
committed
Fix call services
1 parent 89d44b8 commit f6a1821

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

manager/manager/launcher/launcher_gazebo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
from typing import List, Any
1414

1515

16-
def call_service(self, service, service_type, request_data="{}"):
16+
def call_service(service, service_type, request_data="{}"):
1717
command = f"ros2 service call {service} {service_type} '{request_data}'"
1818
subprocess.call(
1919
f"{command}",

manager/manager/launcher/launcher_gzsim.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from manager.ram_logging.log_manager import LogManager
1515

1616

17-
def call_gzservice(self, service, reqtype, reptype, timeout, req):
17+
def call_gzservice(service, reqtype, reptype, timeout, req):
1818
command = f"gz service -s {service} --reqtype {reqtype} --reptype {reptype} --timeout {timeout} --req '{req}'"
1919
subprocess.call(
2020
f"{command}",
@@ -26,7 +26,7 @@ def call_gzservice(self, service, reqtype, reptype, timeout, req):
2626
)
2727

2828

29-
def call_service(self, service, service_type, request_data="{}"):
29+
def call_service(service, service_type, request_data="{}"):
3030
command = f"ros2 service call {service} {service_type} '{request_data}'"
3131
subprocess.call(
3232
f"{command}",
@@ -38,7 +38,7 @@ def call_service(self, service, service_type, request_data="{}"):
3838
)
3939

4040

41-
def is_ros_service_available(self, service_name):
41+
def is_ros_service_available(service_name):
4242
try:
4343
result = subprocess.run(
4444
["ros2", "service", "list", "--include-hidden-services"],

0 commit comments

Comments
 (0)