Skip to content

Commit

Permalink
Merge branch 'koonpeng/hammer-jazzy-base' into ac/fix-build
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Chong <aaronchongth@gmail.com>
  • Loading branch information
aaronchongth committed Jul 16, 2024
2 parents 960765b + ceec1b9 commit 13db0e3
Show file tree
Hide file tree
Showing 256 changed files with 1,520 additions and 5,153 deletions.
10 changes: 5 additions & 5 deletions packages/api-server/api_server/models/building_map.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ class Level(BaseModel):
name: str
elevation: float
images: list[AffineImage]
places: list[rmf_building_map_msgs.Place]
doors: list[rmf_building_map_msgs.Door]
nav_graphs: list[rmf_building_map_msgs.Graph]
wall_graph: rmf_building_map_msgs.Graph
places: list[rmf_building_map_msgs.msg.Place]
doors: list[rmf_building_map_msgs.msg.Door]
nav_graphs: list[rmf_building_map_msgs.msg.Graph]
wall_graph: rmf_building_map_msgs.msg.Graph


class BuildingMap(BaseModel):
name: str
levels: list[Level]
lifts: list[rmf_building_map_msgs.Lift]
lifts: list[rmf_building_map_msgs.msg.Lift]

@staticmethod
def from_tortoise(tortoise: ttm.BuildingMap) -> "BuildingMap":
Expand Down
2 changes: 1 addition & 1 deletion packages/api-server/api_server/models/dispensers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from .ros_pydantic import rmf_dispenser_msgs

DispenserState = rmf_dispenser_msgs.DispenserState
DispenserState = rmf_dispenser_msgs.msg.DispenserState


class Dispenser(BaseModel):
Expand Down
6 changes: 3 additions & 3 deletions packages/api-server/api_server/models/doors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

from .ros_pydantic import rmf_building_map_msgs, rmf_door_msgs

Door = rmf_building_map_msgs.Door
DoorMode = rmf_door_msgs.DoorMode
Door = rmf_building_map_msgs.msg.Door
DoorMode = rmf_door_msgs.msg.DoorMode


DoorState = rmf_door_msgs.DoorState
DoorState = rmf_door_msgs.msg.DoorState


class DoorRequest(BaseModel):
Expand Down
2 changes: 1 addition & 1 deletion packages/api-server/api_server/models/ingestors.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from .ros_pydantic import rmf_ingestor_msgs

IngestorState = rmf_ingestor_msgs.IngestorState
IngestorState = rmf_ingestor_msgs.msg.IngestorState


class Ingestor(BaseModel):
Expand Down
4 changes: 2 additions & 2 deletions packages/api-server/api_server/models/lifts.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@
from . import tortoise_models as ttm
from .ros_pydantic import builtin_interfaces, rmf_building_map_msgs

Lift = rmf_building_map_msgs.Lift
Lift = rmf_building_map_msgs.msg.Lift


class LiftState(BaseModel):
lift_time: builtin_interfaces.Time
lift_time: builtin_interfaces.msg.Time
lift_name: str
available_floors: list[str]
current_floor: str
Expand Down
Empty file.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
from .Duration import Duration
from .Time import Time
from . import msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# This is a generated file, do not edit

from typing import Annotated

import pydantic


class Duration(pydantic.BaseModel):
model_config = pydantic.ConfigDict(from_attributes=True)

sec: Annotated[int, pydantic.Field(ge=-2147483648, le=2147483647)]
nanosec: Annotated[int, pydantic.Field(ge=0, le=4294967295)]
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,5 @@
class Time(pydantic.BaseModel):
model_config = pydantic.ConfigDict(from_attributes=True)

sec: Annotated[int, pydantic.Field(ge=-2147483648, le=2147483647)] # int32
nanosec: Annotated[int, pydantic.Field(ge=0, le=4294967295)] # uint32


# # This message communicates ROS Time defined here:
# # https://design.ros2.org/articles/clock_and_time.html
#
# # The seconds component, valid over all int32 values.
# int32 sec
#
# # The nanoseconds component, valid in the range [0, 1e9).
# uint32 nanosec
sec: Annotated[int, pydantic.Field(ge=-2147483648, le=2147483647)]
nanosec: Annotated[int, pydantic.Field(ge=0, le=4294967295)]
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from .Duration import Duration
from .Time import Time

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Loading

0 comments on commit 13db0e3

Please sign in to comment.