Skip to content

Commit

Permalink
Merge pull request #1 from ToyotaResearchInstitute/andrewb/pseudoacto…
Browse files Browse the repository at this point in the history
…r_names

Adjust topic defaults to include pseudoactor type
  • Loading branch information
andrewbest-tri authored Aug 30, 2022
2 parents 057c5dc + 1126448 commit 111a390
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions carla_ros_bridge/src/carla_ros_bridge/pseudo_actor.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,10 +87,10 @@ def get_prefix(self):
:return: prefix
:rtype: string
"""
if self.parent is not None:
return self.parent.get_prefix() + "/" + self.name
else:
return self.name
class_name = self.__class__.__name__
prefix = "" if self.parent is None else self.parent.get_prefix() + "/"
prefix += "{}{}/{}".format(prefix, class_name, self.name)
return prefix

def get_topic_prefix(self):
"""
Expand Down

0 comments on commit 111a390

Please sign in to comment.