Interface PerceivedObject3D
-
- All Superinterfaces:
Identifiable
,PerceivedObject
,java.io.Serializable
public interface PerceivedObject3D extends PerceivedObject
Information about a perceived object, which can be a GTU, a road sign, a traffic light, or an obstacle. This interface works with 2D locations to retrieve the information.Copyright (c) 2013-2020 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
$LastChangedDate: 2015-07-24 02:58:59 +0200 (Fri, 24 Jul 2015) $, @version $Revision: 1147 $, by $Author: averbraeck $, initial version Dec 10, 2015
BSD-style license. See OpenTrafficSim License.- Author:
- Alexander Verbraeck, Peter Knoppers
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Length
getPerceivedDistance()
Get the perceived distance to the object.OTSPoint3D
getPerceivedLocation()
Get the perceived location of the object.Direction3D
getPerceivedMovingDirection()
Get the perceived absolute 3D moving angle.Angle3D
getPerceivedRelativeMovingDirection()
Get the perceived 3D moving angle from our reference point to the object.Speed
getPerceivedSpeed()
Get the perceived speed of the object.Speed3D
getPerceivedSpeed3D()
Get the perceived speed of the object, split into movement in the X, Y, and Z direction.-
Methods inherited from interface org.opentrafficsim.base.Identifiable
getId
-
-
-
-
Method Detail
-
getPerceivedDistance
Length getPerceivedDistance()
Get the perceived distance to the object. When we combine relative distance and angle with our own location, the object's location can be calculated.- Returns:
- the perceived distance to the object
-
getPerceivedLocation
OTSPoint3D getPerceivedLocation()
Get the perceived location of the object. The perceived location of the object is providing the same information as the combination of perceived distance and relative angle, combined with our own location and RPY direction.- Returns:
- the perceived XYZ-location of the object
-
getPerceivedRelativeMovingDirection
Angle3D getPerceivedRelativeMovingDirection()
Get the perceived 3D moving angle from our reference point to the object.- Returns:
- the perceived 3D-angle of movement of the object
-
getPerceivedMovingDirection
Direction3D getPerceivedMovingDirection()
Get the perceived absolute 3D moving angle.- Returns:
- the perceived 3D-angle of movement of the object
-
getPerceivedSpeed
Speed getPerceivedSpeed()
Get the perceived speed of the object.- Returns:
- the perceived speed of the object, in the RPY-direction it is facing
-
getPerceivedSpeed3D
Speed3D getPerceivedSpeed3D()
Get the perceived speed of the object, split into movement in the X, Y, and Z direction.- Returns:
- a speed vector in 3 dimensions.
-
-