Skip to content

Commit

Permalink
Fix TypeError accessing name and value of SetParameter (#298)
Browse files Browse the repository at this point in the history
Signed-off-by: Jacob Perron <jacob@openrobotics.org>
  • Loading branch information
jacobperron authored Mar 1, 2022
1 parent 0c13a2a commit 21a9dde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions launch_ros/launch_ros/actions/set_parameter.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,12 +76,12 @@ def parse(cls, entity: Entity, parser: Parser):
@property
def name(self) -> ParameterName:
"""Getter for name."""
return self.__param_dict.keys()[0]
return list(self.__param_dict.keys())[0]

@property
def value(self) -> ParameterValue:
"""Getter for value."""
return self.__param_dict.values()[0]
return list(self.__param_dict.values())[0]

def execute(self, context: LaunchContext):
"""Execute the action."""
Expand Down

0 comments on commit 21a9dde

Please sign in to comment.