Skip to content

Commit

Permalink
Use both ROS package and message name for unique mappings (#656)
Browse files Browse the repository at this point in the history
Signed-off-by: Øystein Sture <[email protected]>
Co-authored-by: Addisu Z. Taddese <[email protected]>
  • Loading branch information
oysstu and azeey authored Jan 7, 2025
1 parent ab81585 commit 23f7250
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ros_gz_bridge/ros_gz_bridge/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def gz_type(self):
return f'gz::msgs::{self.gz_message_name}'

def unique(self):
return f'{self.gz_message_name.lower()}_{self.ros2_message_name.lower()}'
return f'{self.gz_message_name.lower()}_' \
f'{self.ros2_package_name}_{self.ros2_message_name.lower()}'


def mappings(gz_msgs_ver):
Expand Down

0 comments on commit 23f7250

Please sign in to comment.