Skip to content

Commit b949f3d

Browse files
committed
🔨 Corrected spellings of localize as per feedback.
Signed-off-by: Bey Hao Yun <[email protected]>
1 parent 643b90e commit b949f3d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

fleet_adapter_template/fleet_adapter_template/RobotClientAPI.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ def localize(
4646
pose,
4747
map_name: str,
4848
):
49-
''' Request the robot to localise on target map. This
49+
''' Request the robot to localize on target map. This
5050
function should return True if the robot has accepted the
5151
request, else False '''
5252
# ------------------------ #

fleet_adapter_template/fleet_adapter_template/fleet_adapter.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -219,15 +219,15 @@ def localize(self, estimate, execution):
219219
f'Commanding [{self.name}] to change map to'
220220
f' [{estimate.map}]'
221221
)
222-
if self.api.localise(self.name, estimate.position, estimate.map):
222+
if self.api.localize(self.name, estimate.position, estimate.map):
223223
self.node.get_logger().info(
224-
f'Localised [{self.name}] on {estimate.map} '
224+
f'Localized [{self.name}] on {estimate.map} '
225225
f'at position [{estimate.position}]'
226226
)
227227
execution.finished()
228228
else:
229229
self.node.get_logger().warn(
230-
f'Failed to localise [{self.name}] on {estimate.map} '
230+
f'Failed to localize [{self.name}] on {estimate.map} '
231231
f'at position [{estimate.position}]. Requesting replanning...'
232232
)
233233
if self.update_handle is not None and self.update_handle.more() is not None:

0 commit comments

Comments
 (0)