Skip to content

Implement localization as part of a mission - #5

Open
aeshub wants to merge 146 commits into
use-coordinates-from-echofrom
automatic-localization
Open

Implement localization as part of a mission#5
aeshub wants to merge 146 commits into
use-coordinates-from-echofrom
automatic-localization

Conversation

@aeshub

@aeshub aeshub commented Oct 18, 2023

Copy link
Copy Markdown
Owner

The localization procedure is now implemented and will run as part of regular mission scheduling.

If the queue is empty a localization mission will be started for the current deck. This assumes that the operator has confirmed that the robot is on the deck of the mission that has been scheduled.

If there is an existing mission the system will check if a new mission is in the same deck as that mission and if so schedule it. If not it will be rejected.

If the last mission finishes a return to home mission will be scheduled which puts the robot back at the default localization pose. If a mission is scheduled in between the return to home mission another localization will not be required.

@aeshub
aeshub force-pushed the automatic-localization branch 3 times, most recently from 39c80d0 to eacd5f0 Compare October 24, 2023 13:53
@aeshub
aeshub force-pushed the use-coordinates-from-echo branch 3 times, most recently from b7e560a to 92ea494 Compare October 31, 2023 11:06
@aeshub
aeshub force-pushed the automatic-localization branch 2 times, most recently from 177e68a to 921d2ae Compare October 31, 2023 13:34
Comment thread backend/api/Services/AreaService.cs Outdated

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Installation is nullable, right?
As we do elsewhere the null check shouldn't be removed

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This message might be misleading if the robot has no current Installation

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Out of curiosity, do we need this null conditional operator, given that if it is null we already throw an exception?

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Any reason for having the return inside the if instead of the throwing of the exception?
Given that in most places we do the opposite this looks less readable to me

@aeshub
aeshub force-pushed the use-coordinates-from-echo branch 3 times, most recently from f7ec6b3 to daca28f Compare November 10, 2023 12:23
@aeshub
aeshub force-pushed the automatic-localization branch from 921d2ae to 42a00c8 Compare November 12, 2023 12:19
@aeshub
aeshub force-pushed the use-coordinates-from-echo branch from daca28f to 1126d52 Compare November 12, 2023 12:20
@aeshub
aeshub force-pushed the automatic-localization branch 2 times, most recently from e1bbd87 to 87cf601 Compare November 13, 2023 12:39
@aeshub
aeshub force-pushed the use-coordinates-from-echo branch from 1126d52 to ec9ce6b Compare November 13, 2023 12:56
@aeshub
aeshub force-pushed the automatic-localization branch from 87cf601 to 1d3ef6a Compare November 13, 2023 12:57
@aeshub
aeshub force-pushed the use-coordinates-from-echo branch from ec9ce6b to ae2e119 Compare November 14, 2023 09:56
@aeshub
aeshub force-pushed the automatic-localization branch from 1d3ef6a to 235acd8 Compare November 14, 2023 10:45
@aeshub
aeshub force-pushed the use-coordinates-from-echo branch 7 times, most recently from c939b59 to ec48d41 Compare November 14, 2023 14:20
@Afonso-2403
Afonso-2403 force-pushed the automatic-localization branch from ad9ec9d to 398c780 Compare December 19, 2023 07:21
@aeshub
aeshub force-pushed the automatic-localization branch from 7a99c91 to 355f6e3 Compare December 19, 2023 11:55
oysand and others added 24 commits December 19, 2023 15:02
The most prevalent area in the list will be selected for the mission
The localization procedure is now implemented and will run as part of
regular mission scheduling.

If the queue is empty a localization mission will be started for the
current deck. This assumes that the operator has confirmed that the
robot is on the deck of the mission that has been scheduled.

If there is an existing mission the system will check if a new mission
is in the same deck as that mission and if so schedule it. If not it
will be rejected.

If the last mission finishes a return to home mission will be scheduled
which puts the robot back at the default localization pose. If a
mission is scheduled in between the return to home mission another
localization will not be required.
@aeshub
aeshub force-pushed the automatic-localization branch from bfe08bd to 7d4e999 Compare December 19, 2023 15:04
@github-actions

github-actions Bot commented Nov 6, 2025

Copy link
Copy Markdown

This pull request has been automatically marked as stale due to inactivity.

@github-actions github-actions Bot added the stale label Nov 6, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.