Skip to content

Commit

Permalink
Hammer/decommission (#920)
Browse files Browse the repository at this point in the history
* New fleets routes to decommission and reinstate robots

Signed-off-by: Aaron Chong <[email protected]>

* Generated new API for decomm and reinstate robots

Signed-off-by: Aaron Chong <[email protected]>

* New button component for robot decommissioning and reinstating

Signed-off-by: Aaron Chong <[email protected]>

* Using recommission instead of reinstate

Signed-off-by: Aaron Chong <[email protected]>

* Built api-client with recommission instead of reinstate

Signed-off-by: Aaron Chong <[email protected]>

* Recommission, add new color to robot table to show offline or uninitialized

Signed-off-by: Aaron Chong <[email protected]>

* Test de/re-commission route

Signed-off-by: Aaron Chong <[email protected]>

* Generate new refactored API

Signed-off-by: Aaron Chong <[email protected]>

* Refactor API to not pass labels due to generated API having a requestBody

Signed-off-by: Aaron Chong <[email protected]>

* Lint

Signed-off-by: Aaron Chong <[email protected]>

* robot rmf service

Signed-off-by: Aaron Chong <[email protected]>

* Updated rmf_api to latest before adding decommission related schema

Signed-off-by: Aaron Chong <[email protected]>

* Fix tests

Signed-off-by: Aaron Chong <[email protected]>

* New decommissioning API messages and schemas

Signed-off-by: Aaron Chong <[email protected]>

* Updated fleet route with new API

Signed-off-by: Aaron Chong <[email protected]>

* Check fleet before attempting decommission, with tests and lint

Signed-off-by: Aaron Chong <[email protected]>

* New openapi generated

Signed-off-by: Aaron Chong <[email protected]>

* Clean up ROS 2 topic, fix frontend api call

Signed-off-by: Aaron Chong <[email protected]>

* Update rmf_api models

Signed-off-by: Aaron Chong <[email protected]>

* Updated api-client

Signed-off-by: Aaron Chong <[email protected]>

* Decommissioned robots will display false in all fields in robotState.commission

Signed-off-by: Aaron Chong <[email protected]>

* Decommission with choice to re-assign tasks (default true)

Signed-off-by: Aaron Chong <[email protected]>

* Lint and tests

Signed-off-by: Aaron Chong <[email protected]>

* Tests and error message handling

Signed-off-by: Aaron Chong <[email protected]>

* request type to be commission_request

Signed-off-by: Aaron Chong <[email protected]>

* Updated commission models

Signed-off-by: Aaron Chong <[email protected]>

* Updated and tested

Signed-off-by: Aaron Chong <[email protected]>

* Makeshift change robot status to decommissioned

Signed-off-by: Aaron Chong <[email protected]>

* Make other policies complete

Signed-off-by: Aaron Chong <[email protected]>

* Add tooltip to reassigning choice

Signed-off-by: Aaron Chong <[email protected]>

* Allow users to choose if idle behaviors are allowed during decommission

Signed-off-by: Aaron Chong <[email protected]>

* Fix tests

Signed-off-by: Aaron Chong <[email protected]>

* Update hash after rmf_api_msgs#48 has been merged

Signed-off-by: Aaron Chong <[email protected]>

* Update version

Signed-off-by: Aaron Chong <[email protected]>

* Address review comments for route

Signed-off-by: Aaron Chong <[email protected]>

* Clearer documentation for de/recommission routes

Signed-off-by: Aaron Chong <[email protected]>

* Address dashboard component reviews

Signed-off-by: Aaron Chong <[email protected]>

* Refactor to use a single confirmation dialog

Signed-off-by: Aaron Chong <[email protected]>

* Generate new openapi with documentation

Signed-off-by: Aaron Chong <[email protected]>

* Document in context of allow_idle_behavior

Signed-off-by: Aaron Chong <[email protected]>

---------

Signed-off-by: Aaron Chong <[email protected]>
  • Loading branch information
aaronchongth committed Apr 15, 2024
1 parent 24d7249 commit e6a2eae
Show file tree
Hide file tree
Showing 42 changed files with 1,433 additions and 501 deletions.
3 changes: 1 addition & 2 deletions packages/api-client/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import {
DispenserState,
DoorHealth,
DoorState,
ApiServerModelsRmfApiFleetStateFleetState,
FleetState,
IngestorHealth,
IngestorState,
LiftHealth,
Expand All @@ -19,7 +19,6 @@ import {
} from './openapi';

type Alert = ApiServerModelsTortoiseModelsAlertsAlertLeaf;
type FleetState = ApiServerModelsRmfApiFleetStateFleetState;

const debug = Debug('rmf-client');

Expand Down
Loading

0 comments on commit e6a2eae

Please sign in to comment.