Skip to content

Commit

Permalink
fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
fred-labs committed Aug 13, 2024
1 parent 3306e82 commit 3d4704e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def __init__(self, node_name: str, parameter_name: str, parameter_value: str):
service_type='rcl_interfaces.srv.SetParameters',
data='{ "parameters": [{ "name": "' + parameter_name + '", "value": { "type": ' + str(parameter_type) + ', "' + parameter_assign_name + '": ' + parameter_value + '}}]}')

def execute(self, node_name: str, parameter_name: str, parameter_value: str): # pylint: disable=arguments-differ
def execute(self, node_name: str, parameter_name: str, parameter_value: str): # pylint: disable=arguments-differ,arguments-renamed
if self.node_name != node_name or self.parameter_name != parameter_name or self.parameter_value != parameter_value:
raise ValueError("node_name, parameter_name and parameter_value are not changeable during runtime.")

Expand Down
2 changes: 1 addition & 1 deletion scenario_execution_ros/test/test_ros_service_call.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
from scenario_execution_ros import ROSScenarioExecution
from scenario_execution.model.osc2_parser import OpenScenario2Parser
from scenario_execution.utils.logging import Logger
from ament_index_python.packages import get_package_share_directory
from scenario_execution.model.model_to_py_tree import create_py_tree
from ament_index_python.packages import get_package_share_directory
from antlr4.InputStream import InputStream
import py_trees
from std_srvs.srv import SetBool
Expand Down

0 comments on commit 3d4704e

Please sign in to comment.