Skip to content

Commit

Permalink
Support robot types with organization namespaces (#521)
Browse files Browse the repository at this point in the history
Signed-off-by: Luca Della Vedova <[email protected]>
  • Loading branch information
luca-della-vedova authored Jan 20, 2025
1 parent 0d18f59 commit 38ec6a8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions rmf_building_map_tools/building_map/level.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,12 @@ def generate_robot_at_vertex_idx(self, vertex_idx, world_ele):
robot_name = vertex.params['spawn_robot_name'].value
print(f'spawning robot name {robot_name} of type {robot_type}')

# remove Open-RMF namespace, if present
if '/' in robot_type:
segments = robot_type.split('/')
if segments[0].lower() == 'open-rmf':
robot_type = "/".join(segments[1:])

yaw = 0
# find the first vertex connected by a lane to this vertex
for lane in self.lanes:
Expand Down

0 comments on commit 38ec6a8

Please sign in to comment.