-
Notifications
You must be signed in to change notification settings - Fork 42
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated rmf_api to latest before adding decommission related schema
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
- Loading branch information
1 parent
aa96f48
commit 86248ed
Showing
31 changed files
with
313 additions
and
274 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
60 changes: 60 additions & 0 deletions
60
packages/api-server/api_server/models/rmf_api/rtls_tag_state.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
# generated by datamodel-codegen: | ||
# filename: rtls_tag_state.json | ||
|
||
from __future__ import annotations | ||
|
||
from enum import Enum | ||
from typing import Any, Dict, List, Optional, Union | ||
|
||
from pydantic import BaseModel, Field, confloat | ||
|
||
from . import location_2D | ||
|
||
|
||
class Status2(Enum): | ||
uninitialized = "uninitialized" | ||
offline = "offline" | ||
shutdown = "shutdown" | ||
idle = "idle" | ||
charging = "charging" | ||
working = "working" | ||
error = "error" | ||
|
||
|
||
class LocationType(Enum): | ||
zone = "zone" | ||
coord = "coord" | ||
|
||
|
||
class AssetType(BaseModel): | ||
asset_type: Optional[str] = Field(None, description="type of the asset") | ||
asset_subtype: Optional[str] = Field(None, description="subtype of the asset") | ||
|
||
|
||
class Issue(BaseModel): | ||
category: Optional[str] = Field(None, description="Category of the tag's issue") | ||
detail: Optional[Union[Dict[str, Any], List, str]] = Field( | ||
None, description="Detailed information about the issue" | ||
) | ||
|
||
|
||
class RtlsTagState(BaseModel): | ||
tag_id: str = Field(..., description="The ID of the rtls tag.") | ||
status: Optional[Status2] = Field( | ||
None, description="A simple token representing the status of the tag" | ||
) | ||
location_type: Optional[LocationType] = Field( | ||
None, description="The type location information provided by the tag." | ||
) | ||
asset_type: Optional[AssetType] = Field( | ||
None, description="The type of the tagged asset." | ||
) | ||
unix_millis_time: Optional[int] = None | ||
location: Optional[location_2D.Location2D] = None | ||
battery: Optional[confloat(ge=0.0, le=1.0)] = Field( | ||
None, | ||
description="State of charge of the battery. Values range from 0.0 (depleted) to 1.0 (fully charged)", | ||
) | ||
issues: Optional[List[Issue]] = Field( | ||
None, description="A list of issues with the tag that operators need to address" | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 15 additions & 0 deletions
15
packages/api-server/api_server/models/rmf_api/transformation_2D.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
# generated by datamodel-codegen: | ||
# filename: transformation_2D.json | ||
|
||
from __future__ import annotations | ||
|
||
from pydantic import BaseModel | ||
|
||
|
||
class Transformation2D(BaseModel): | ||
target_map: str | ||
ref_map: str | ||
x: float | ||
y: float | ||
yaw: float | ||
scale: float |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# THIS FILE IS GENERATED | ||
version = { | ||
"rmf_api_msgs": "91295892192d24ec73c9a1c6fa54334963586784", | ||
"rmf_api_msgs": "a77c3a2d53f7f61aa379bf2ba64a41f98998c9f5", | ||
"datamodel-code-generator": "0.11.19", | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/react-components/lib/robots/robot-table-datagrid.spec.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/react-components/lib/robots/robot-table-datagrid.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.