AI Testing Simulator
Loading...
Searching...
No Matches
Entity.Ego Class Reference

Create Ego vehicle. Object has no actions, only start point and destination. More...

Inheritance diagram for Entity.Ego:
Entity.BaseEntity

Public Member Functions

 Ego (Location spawnPoint, EntityModel model, AdversaryCategory category, double initialSpeedKMH, Color color)
 Creates an Ego vehicle object with a spawn point, model, category, and initial speed. Object has no actions, only start point and destination.
 
 Ego ()
 Creates an empty Ego vehicle object.
 
void setCategory (AdversaryCategory category)
 Sets the category of the Ego vehicle.
 
void setModel (EntityModel model)
 Sets the model of the Ego vehicle.
 
object Clone ()
 Clones the Ego vehicle object.
 
- Public Member Functions inherited from Entity.BaseEntity
 BaseEntity (string id, Location spawnPoint, double initialSpeedKMH, Color color)
 Creates a new BaseEntity object with an Id, SpawnPoint, and initial speed.
 
 BaseEntity ()
 Creates a new BaseEntity object with empty values.
 
void setPosition (float x, float y)
 Sets the position of the BaseEntity object.
 
void setRotation (float angle)
 Sets the rotation angle of the BaseEntity object.
 
void setView (IBaseEntityView view)
 Sets the view of the BaseEntity object.
 
void setColor (Color c)
 Sets the color of the BaseEntity object.
 
Location getCarlaLocation ()
 Returns the location of the BaseEntity object in CARLA coordinates.
 

Properties

Location Destination [get, set]
 
EntityModel Model [get]
 
AdversaryCategory Category [get, set]
 
string Agent [get, set]
 
- Properties inherited from Entity.BaseEntity
string Id [get, set]
 The unique identifier of the BaseEntity object.
 
Location SpawnPoint [get, set]
 
double InitialSpeedKMH [get, set]
 
IBaseEntityView View [get, set]
 

Additional Inherited Members

- Public Attributes inherited from Entity.BaseEntity
ColorSer Color
 

Detailed Description

Create Ego vehicle. Object has no actions, only start point and destination.

Constructor & Destructor Documentation

◆ Ego()

Entity.Ego.Ego ( Location  spawnPoint,
EntityModel  model,
AdversaryCategory  category,
double  initialSpeedKMH,
Color  color 
)
inline

Creates an Ego vehicle object with a spawn point, model, category, and initial speed. Object has no actions, only start point and destination.

Parameters
spawnPointThe spawn point for the Ego vehicle.
modelThe model of the Ego vehicle.
categoryThe category of the Ego vehicle.
initialSpeedKMHThe initial speed of the Ego vehicle in km/h.

Member Function Documentation

◆ Clone()

object Entity.Ego.Clone ( )
inline

Clones the Ego vehicle object.

Returns
The cloned deepcopied Ego vehicle object.

◆ setCategory()

void Entity.Ego.setCategory ( AdversaryCategory  category)
inline

Sets the category of the Ego vehicle.

Parameters
categoryThe category of the Ego vehicle.

◆ setModel()

void Entity.Ego.setModel ( EntityModel  model)
inline

Sets the model of the Ego vehicle.

Parameters
modelThe model of the Ego vehicle.

The documentation for this class was generated from the following file: