|
CARLA
|
#include <Location.h>
Inheritance diagram for carla::geom::Location:Public Member Functions | |
| auto | Distance (Location loc) const |
| constexpr auto | DistanceSquared (Location loc) const |
| Location ()=default | |
| Location (const FVector &vector) | |
| Location (Vector3D rhs) | |
| constexpr | Location (Vector3DInt rhs) |
| operator FVector () const | |
| constexpr Location & | operator+= (Location rhs) |
| constexpr Location & | operator-= (Location rhs) |
| constexpr RightHandedVector3D | ToRightHanded () const |
This location expressed in a right-handed, x-forward / y-**left** / z-up frame (ROS REP-103 "FLU"): (x, -y, z). | |
| Vector3D ()=default | |
| Vector3D (const FVector &v)=delete | |
| These 2 methods are explicitly deleted to avoid creating them by other users, unlike locations, some vectors have units and some don't, by removing these methods we found several places were the conversion from cm to m was missing. | |
| constexpr | Vector3D (float ix, float iy, float iz) |
Public Member Functions inherited from carla::geom::Vector3D | |
| Vector3D | Abs () const |
| float | Length () const |
| float | Length2D () const |
| Vector3D | MakeUnitVector (const float epsilon=2.0f *std::numeric_limits< float >::epsilon()) const |
| Return a unit-length copy of this vector. | |
| template<typename MSGPACK_OBJECT > | |
| void | msgpack_object (MSGPACK_OBJECT *o, clmdep_msgpack::zone &sneaky_variable_that_shadows_z) const |
| template<typename Packer > | |
| void | msgpack_pack (Packer &pk) const |
| void | msgpack_unpack (clmdep_msgpack::object const &o) |
| constexpr bool | operator!= (const Vector3D &rhs) const |
| constexpr Vector3D & | operator*= (float rhs) |
| constexpr Vector3D & | operator+= (const Vector3D &rhs) |
| constexpr Vector3D & | operator-= (const float f) |
| constexpr Vector3D & | operator-= (const Vector3D &rhs) |
| constexpr Vector3D & | operator/= (float rhs) |
| Vector3D & | operator= (const FVector &rhs)=delete |
| constexpr bool | operator== (const Vector3D &rhs) const |
| constexpr float | SquaredLength () const |
| constexpr float | SquaredLength2D () const |
| Vector3D | ToCentimeters () const |
| Return a Vector3D converted from meters to centimeters. | |
| FVector | ToFVector () const |
| Vector3D | ToMeters () const |
| Return a Vector3D converted from centimeters to meters. | |
| Vector3D ()=default | |
| Vector3D (const FVector &v)=delete | |
| These 2 methods are explicitly deleted to avoid creating them by other users, unlike locations, some vectors have units and some don't, by removing these methods we found several places were the conversion from cm to m was missing. | |
| constexpr | Vector3D (float ix, float iy, float iz) |
Static Public Member Functions | |
| static constexpr Location | FromRightHanded (const RightHandedVector3D &rhs) |
Inverse of ToRightHanded(). | |
Friends | |
| constexpr friend Location | operator+ (Location lhs, Location rhs) |
| constexpr friend Location | operator- (Location lhs, Location rhs) |
Additional Inherited Members | |
Public Attributes inherited from carla::geom::Vector3D | |
| float | x = 0.0f |
| float | y = 0.0f |
| float | z = 0.0f |
Static Public Attributes inherited from carla::geom::Vector3D | |
| static constexpr auto | Dim = 3 |
Definition at line 23 of file geom/Location.h.
|
default |
|
inline |
Definition at line 33 of file geom/Location.h.
|
inlineconstexpr |
Definition at line 35 of file geom/Location.h.
|
inline |
Definition at line 99 of file geom/Location.h.
|
inline |
Definition at line 49 of file geom/Location.h.
References carla::geom::Math::Distance().
Referenced by carla::traffic_manager::MotionPlanStage::CalculateBaseOffset(), carla::traffic_manager::SimpleWaypoint::Distance(), carla::traffic_manager::SimpleWaypoint::Distance(), carla::traffic_manager::GetPathSpeedLimit(), carla::traffic_manager::MotionPlanStage::GetTurnTargetVelocity(), carla::traffic_manager::InterpolateBufferAt(), and carla::traffic_manager::MotionPlanStage::Update().
|
inlineconstexpr |
Definition at line 45 of file geom/Location.h.
References carla::geom::Math::DistanceSquared().
Referenced by carla::nav::WalkerManager::GetTrafficLightAffecting(), and carla::traffic_manager::InterpolateBufferAt().
|
inlinestaticconstexpr |
Inverse of ToRightHanded().
Mirroring Y is an involution, so this is the same (x, -y, z) map read the other way.
Definition at line 65 of file geom/Location.h.
References Location(), carla::geom::RightHandedVector3D::x, carla::geom::RightHandedVector3D::y, and carla::geom::RightHandedVector3D::z.
Referenced by carla::geom::Transform::FromRightHanded(), and TEST().
|
inline |
Definition at line 102 of file geom/Location.h.
References carla::geom::Vector3D::x, carla::geom::Vector3D::y, and carla::geom::Vector3D::z.
Definition at line 73 of file geom/Location.h.
Definition at line 83 of file geom/Location.h.
|
inlineconstexpr |
This location expressed in a right-handed, x-forward / y-**left** / z-up frame (ROS REP-103 "FLU"): (x, -y, z).
Definition at line 59 of file geom/Location.h.
Referenced by carla::geom::Transform::ToRightHanded().
|
default |
|
delete |
These 2 methods are explicitly deleted to avoid creating them by other users, unlike locations, some vectors have units and some don't, by removing these methods we found several places were the conversion from cm to m was missing.
|
inlineconstexpr |
Definition at line 37 of file geom/Vector3D.h.
Definition at line 78 of file geom/Location.h.
Definition at line 88 of file geom/Location.h.