Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed type of vehicle tag #69

Open
wants to merge 1 commit into
base: ente
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/duckietown_world/structure/map_factory.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
from duckietown_world.dt_yaml.dt_yaml import DTYaml

from .duckietown_map import DuckietownMap
from .layers import LayerGeneral, LayerFrames, LayerTileMaps, LayerTiles, LayerWatchtowers, LayerGroups, LayerCitizens, \
from .layers import LayerGeneral, LayerFrames, LayerTileMaps, LayerTiles, LayerWatchtowers, LayerGroups, LayerCitizens,\
LayerTrafficSigns, LayerGroundTags, LayerVehicles, LayerCameras, LayerDecorations, LayerEnvironment, \
LayerVehicleTags, LayerLights

Expand Down
4 changes: 2 additions & 2 deletions src/duckietown_world/structure/objects.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ def draw_svg(self, drawing: "DrawingSVG", g: "GroupSVG") -> None:

@dataclass
class _VehicleTag(_GroundTag):
pass
id: int = 400


@dataclass
Expand Down Expand Up @@ -238,7 +238,7 @@ def object_type(cls) -> type:
class VehicleTag(ConstructedObject):
@classmethod
def object_type(cls) -> type:
return _Vehicle
return _VehicleTag


class Tile(ConstructedObject):
Expand Down