Commit d6ea2bd6 authored by Matthias Greuter's avatar Matthias Greuter
Browse files

Extend for static objects

- add 'kStatic' to entity-type enum
- Change IEntityRepository interface for static objects to take a properties pointer
parent 447186f8
......@@ -25,14 +25,16 @@ namespace mantle_api
{
enum class EntityType
{
// Other (unspecified but known) type of moving object.
// Other (unspecified but known)
kOther = 1,
// Object is a vehicle.
kVehicle = 2,
// Object is a pedestrian.
kPedestrian = 3,
// Object is an animal.
kAnimal = 4
kAnimal = 4,
// Object is static and does not move
kStatic = 5
};
/// Basic properties that describe scenario entities.
......
......@@ -49,6 +49,7 @@ class IEntity : public IIdentifiable
virtual Orientation3d GetOrientationAcceleration() const = 0;
virtual void SetProperties(std::unique_ptr<mantle_api::EntityProperties> properties) = 0;
virtual EntityProperties* GetProperties() const = 0;
virtual void SetAssignedLaneIds(const std::vector<std::uint64_t>& assigned_lane_ids) = 0;
......
......@@ -31,8 +31,8 @@ class IEntityRepository
virtual IVehicle& Create(UniqueId id, const std::string& name, const VehicleProperties& properties) = 0;
virtual IPedestrian& Create(const std::string& name, const PedestrianProperties& properties) = 0;
virtual IPedestrian& Create(UniqueId id, const std::string& name, const PedestrianProperties& properties) = 0;
virtual IStaticObject& Create(const std::string& name, const StaticObjectProperties& properties) = 0;
virtual IStaticObject& Create(UniqueId id, const std::string& name, const StaticObjectProperties& properties) = 0;
virtual IStaticObject& Create(const std::string& name, std::unique_ptr<mantle_api::StaticObjectProperties> properties) = 0;
virtual IStaticObject& Create(UniqueId id, const std::string& name, std::unique_ptr<StaticObjectProperties> properties) = 0;
virtual IVehicle& GetHost() = 0;
virtual IEntity& Get(const std::string& name) = 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment