CARLA
 
载入中...
搜索中...
未找到
Public 成员函数 | Public 属性 | 友元 | 所有成员列表
carla::geom::Vector3D类 参考

#include <Vector3D.h>

+ 类 carla::geom::Vector3D 继承关系图:
+ carla::geom::Vector3D 的协作图:

Public 成员函数

Vector3D Abs () const
 
float Length () const
 
float Length2D () const
 
Vector3D MakeSafeUnitVector (const float epsilon) const
 
Vector3D MakeUnitVector () const
 
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)
 
bool operator!= (const Vector3D &rhs) const
 
Vector3Doperator*= (float rhs)
 
Vector3Doperator+= (const Vector3D &rhs)
 
Vector3Doperator-= (const float f)
 
Vector3Doperator-= (const Vector3D &rhs)
 
Vector3Doperator/= (float rhs)
 
Vector3Doperator= (const FVector &rhs)=delete
 
bool operator== (const Vector3D &rhs) const
 
float SquaredLength () const
 
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
 
 Vector3D (float ix, float iy, float iz)
 

Public 属性

float x = 0.0f
 
float y = 0.0f
 
float z = 0.0f
 

友元

Vector3D operator* (float lhs, Vector3D rhs)
 
Vector3D operator* (Vector3D lhs, float rhs)
 
Vector3D operator+ (Vector3D lhs, const Vector3D &rhs)
 
Vector3D operator- (Vector3D lhs, const Vector3D &rhs)
 
Vector3D operator/ (float lhs, Vector3D rhs)
 
Vector3D operator/ (Vector3D lhs, float rhs)
 

详细描述

在文件 geom/Vector3D.h17 行定义.

构造及析构函数说明

◆ Vector3D() [1/3]

carla::geom::Vector3D::Vector3D ( )
default

被这些函数引用 Abs(), MakeSafeUnitVector() , 以及 MakeUnitVector().

+ 这是这个函数的调用关系图:

◆ Vector3D() [2/3]

carla::geom::Vector3D::Vector3D ( float ix,
float iy,
float iz )
inline

在文件 geom/Vector3D.h36 行定义.

◆ Vector3D() [3/3]

carla::geom::Vector3D::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

成员函数说明

◆ Abs()

Vector3D carla::geom::Vector3D::Abs ( ) const
inline

在文件 geom/Vector3D.h61 行定义.

引用了 Vector3D(), x, y , 以及 z.

+ 函数调用图:

◆ Length()

float carla::geom::Vector3D::Length ( ) const
inline

◆ Length2D()

float carla::geom::Vector3D::Length2D ( ) const
inline

在文件 geom/Vector3D.h57 行定义.

引用了 SquaredLength2D().

+ 函数调用图:

◆ MakeSafeUnitVector()

Vector3D carla::geom::Vector3D::MakeSafeUnitVector ( const float epsilon) const
inline

在文件 geom/Vector3D.h72 行定义.

引用了 Length(), Vector3D(), x, y , 以及 z.

被这些函数引用 carla::traffic_manager::DeviationCrossProduct(), carla::traffic_manager::DeviationDotProduct(), carla::traffic_manager::CollisionStage::GetBoundary(), carla::traffic_manager::CollisionStage::GetGeodesicBoundary(), carla::traffic_manager::CollisionStage::NegotiateCollision(), carla::client::detail::Client::SpawnActorWithParent() , 以及 carla::traffic_manager::MotionPlanStage::Update().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ MakeUnitVector()

Vector3D carla::geom::Vector3D::MakeUnitVector ( ) const
inline

在文件 geom/Vector3D.h65 行定义.

引用了 DEVELOPMENT_ASSERT, Length(), Vector3D(), x, y , 以及 z.

被这些函数引用 carla::road::Map::GetTreesTransform(), ARayCastLidar::PostprocessDetection() , 以及 carla::road::Map::SDFToMesh().

+ 函数调用图:
+ 这是这个函数的调用关系图:

◆ msgpack_object()

template<typename MSGPACK_OBJECT >
void carla::geom::Vector3D::msgpack_object ( MSGPACK_OBJECT * o,
clmdep_msgpack::zone & sneaky_variable_that_shadows_z ) const
inline

在文件 geom/Vector3D.h203 行定义.

引用了 x, y , 以及 z.

◆ msgpack_pack()

template<typename Packer >
void carla::geom::Vector3D::msgpack_pack ( Packer & pk) const
inline
待办事项
The following is copy-pasted from MSGPACK_DEFINE_ARRAY. This is a workaround for an issue in msgpack library. The MSGPACK_DEFINE_ARRAY macro is shadowing our z variable. https://github.com/msgpack/msgpack-c/issues/709

在文件 geom/Vector3D.h194 行定义.

引用了 x, y , 以及 z.

◆ msgpack_unpack()

void carla::geom::Vector3D::msgpack_unpack ( clmdep_msgpack::object const & o)
inline

在文件 geom/Vector3D.h198 行定义.

引用了 x, y , 以及 z.

◆ operator!=()

bool carla::geom::Vector3D::operator!= ( const Vector3D & rhs) const
inline

在文件 geom/Vector3D.h155 行定义.

◆ operator*=()

Vector3D & carla::geom::Vector3D::operator*= ( float rhs)
inline

在文件 geom/Vector3D.h113 行定义.

引用了 x, y , 以及 z.

◆ operator+=()

Vector3D & carla::geom::Vector3D::operator+= ( const Vector3D & rhs)
inline

在文件 geom/Vector3D.h82 行定义.

引用了 x, y , 以及 z.

◆ operator-=() [1/2]

Vector3D & carla::geom::Vector3D::operator-= ( const float f)
inline

在文件 geom/Vector3D.h106 行定义.

引用了 x, y , 以及 z.

◆ operator-=() [2/2]

Vector3D & carla::geom::Vector3D::operator-= ( const Vector3D & rhs)
inline

在文件 geom/Vector3D.h94 行定义.

引用了 x, y , 以及 z.

◆ operator/=()

Vector3D & carla::geom::Vector3D::operator/= ( float rhs)
inline

在文件 geom/Vector3D.h130 行定义.

引用了 x, y , 以及 z.

◆ operator=()

Vector3D & carla::geom::Vector3D::operator= ( const FVector & rhs)
delete

◆ operator==()

bool carla::geom::Vector3D::operator== ( const Vector3D & rhs) const
inline

在文件 geom/Vector3D.h151 行定义.

引用了 x, y , 以及 z.

◆ SquaredLength()

float carla::geom::Vector3D::SquaredLength ( ) const
inline

在文件 geom/Vector3D.h45 行定义.

引用了 x, y , 以及 z.

被这些函数引用 Length(), carla::traffic_manager::MotionPlanStage::SafeAfterJunction(), carla::traffic_manager::LocalizationStage::Update(), carla::nav::WalkerManager::Update(), carla::nav::Navigation::UpdateCrowd() , 以及 carla::traffic_manager::ALSM::UpdateIdleTime().

+ 这是这个函数的调用关系图:

◆ SquaredLength2D()

float carla::geom::Vector3D::SquaredLength2D ( ) const
inline

在文件 geom/Vector3D.h53 行定义.

引用了 x , 以及 y.

被这些函数引用 Length2D().

+ 这是这个函数的调用关系图:

◆ ToCentimeters()

Vector3D carla::geom::Vector3D::ToCentimeters ( ) const
inline

Return a Vector3D converted from meters to centimeters.

在文件 geom/Vector3D.h177 行定义.

◆ ToFVector()

FVector carla::geom::Vector3D::ToFVector ( ) const
inline

在文件 geom/Vector3D.h181 行定义.

引用了 x, y , 以及 z.

◆ ToMeters()

Vector3D carla::geom::Vector3D::ToMeters ( ) const
inline

Return a Vector3D converted from centimeters to meters.

在文件 geom/Vector3D.h172 行定义.

友元及相关函数文档

◆ operator* [1/2]

Vector3D operator* ( float lhs,
Vector3D rhs )
friend

在文件 geom/Vector3D.h125 行定义.

◆ operator* [2/2]

Vector3D operator* ( Vector3D lhs,
float rhs )
friend

在文件 geom/Vector3D.h120 行定义.

◆ operator+

Vector3D operator+ ( Vector3D lhs,
const Vector3D & rhs )
friend

在文件 geom/Vector3D.h89 行定义.

◆ operator-

Vector3D operator- ( Vector3D lhs,
const Vector3D & rhs )
friend

在文件 geom/Vector3D.h101 行定义.

◆ operator/ [1/2]

Vector3D operator/ ( float lhs,
Vector3D rhs )
friend

在文件 geom/Vector3D.h142 行定义.

◆ operator/ [2/2]

Vector3D operator/ ( Vector3D lhs,
float rhs )
friend

在文件 geom/Vector3D.h137 行定义.

类成员变量说明

◆ x

float carla::geom::Vector3D::x = 0.0f

在文件 geom/Vector3D.h24 行定义.

被这些函数引用 Abs(), CaService::AddBasicVehicleContainerHighFrequency(), carla::road::Map::AddElementToRtree(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::nav::Navigation::AddWalker(), carla::rss::RssCheck::AppendRoutingTarget(), carla::road::element::DirectedPoint::ApplyLateralOffset(), carla::road::element::LaneCrossingCalculator::Calculate(), carla::traffic_manager::LocalizationStage::ComputeActionBuffer(), carla::traffic_manager::LocalizationStage::ComputeNextAction(), carla::geom::BoundingBox::Contains(), carla::geom::Math::Cross(), carla::traffic_manager::DeviationCrossProduct(), carla::traffic_manager::DeviationDotProduct(), carla::geom::Math::DistanceArcToPoint(), carla::geom::Math::DistanceSquared(), carla::geom::Math::DistanceSquared2D(), carla::road::element::GeometrySpiral::DistanceTo(), carla::road::element::GeometryPoly3::DistanceTo(), carla::road::element::GeometryParamPoly3::DistanceTo(), carla::geom::Math::Dot(), carla::geom::Math::Dot2D(), carla::road::Map::FilterJunctionsByPosition(), carla::road::Map::FilterRoadsByPosition(), carla::nav::Navigation::GetAgentRoute(), carla::road::Map::GetAllCrosswalkZones(), carla::traffic_manager::CollisionStage::GetBoundary(), carla::road::Map::GetClosestWaypointOnRoad(), carla::traffic_manager::CollisionStage::GetGeodesicBoundary(), carla::rss::RssCheck::GetGreenTrafficLightsOnRoute(), carla::geom::Transform::GetInverseMatrix(), carla::geom::BoundingBox::GetLocalVerticesNoRotation(), carla::geom::Transform::GetMatrix(), carla::nav::Navigation::GetPath(), carla::nav::Navigation::GetRandomLocation(), carla::rss::RssCheck::GetRoutingTargets(), carla::client::TrafficLight::GetStopWaypoints(), carla::traffic_manager::MotionPlanStage::GetThreePointCircleRadius(), carla::nav::Navigation::GetWalkerPosition(), carla::nav::Navigation::GetWalkerTransform(), carla::traffic_manager::InMemoryMap::GetWaypoint(), carla::traffic_manager::InMemoryMap::GetWaypointsInDelta(), carla::client::WalkerAIController::GoToLocation(), carla::nav::Navigation::HasVehicleNear(), carla::geom::Rotation::InverseRotateVector(), MakeSafeUnitVector(), MakeUnitVector(), msgpack_object(), msgpack_pack(), msgpack_unpack(), carla::traffic_manager::CollisionStage::NegotiateCollision(), carla::geom::Location::operator FVector(), carla::rpc::WalkerControl::operator FWalkerControl(), carla::rpc::WheelPhysicsControl::operator FWheelPhysicsControl(), carla::nav::WalkerEventVisitor::operator()(), operator*=(), operator+=(), operator-=(), operator-=(), operator/=(), carla::geom::operator<<(), operator==(), carla::road::element::GeometryLine::PosFromDist(), carla::road::element::GeometryArc::PosFromDist(), carla::road::element::GeometrySpiral::PosFromDist(), carla::road::element::GeometryPoly3::PosFromDist(), carla::road::element::GeometryParamPoly3::PosFromDist(), carla::ros2::ROS2::ProcessDataFromCollisionSensor(), carla::ros2::ROS2::ProcessDataFromIMU(), CarlaRecorderQuery::QueryInfo(), carla::client::Rotate(), carla::geom::Math::RotatePointOnOrigin2D(), carla::geom::Rotation::RotateVector(), carla::road::Map::SDFToMesh(), carla::traffic_manager::SimpleWaypoint::SetLeftWaypoint(), carla::traffic_manager::SimpleWaypoint::SetRightWaypoint(), carla::traffic_manager::InMemoryMap::SetUpSpatialTree(), carla::nav::Navigation::SetWalkerDirectTargetIndex(), carla::nav::Navigation::SetWalkerLookAt(), carla::geom::Simplification::Simplificate(), SquaredLength(), SquaredLength2D(), TEST(), TEST(), TEST(), TEST(), TEST(), ToFVector(), carla::geom::GeoLocation::Transform(), carla::traffic_manager::CollisionStage::Update(), carla::nav::WalkerManager::Update(), carla::traffic_manager::ALSM::UpdateData(), carla::traffic_manager::ALSM::UpdateUnregisteredActorsData(), carla::client::detail::WalkerNavigation::UpdateVehiclesInCrowd(), carla::sensor::data::LidarDetection::WriteDetection(), carla::sensor::data::SemanticLidarDetection::WriteDetection() , 以及 carla::sensor::data::LidarData::WritePointSync().

◆ y

float carla::geom::Vector3D::y = 0.0f

在文件 geom/Vector3D.h26 行定义.

被这些函数引用 Abs(), CaService::AddBasicVehicleContainerHighFrequency(), carla::road::Map::AddElementToRtree(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::nav::Navigation::AddWalker(), carla::rss::RssCheck::AppendRoutingTarget(), carla::road::element::DirectedPoint::ApplyLateralOffset(), carla::road::element::LaneCrossingCalculator::Calculate(), carla::traffic_manager::LocalizationStage::ComputeActionBuffer(), carla::traffic_manager::LocalizationStage::ComputeNextAction(), carla::road::MapBuilder::ComputeSignalTransform(), carla::road::Lane::ComputeTransform(), carla::geom::BoundingBox::Contains(), carla::geom::Math::Cross(), carla::traffic_manager::DeviationCrossProduct(), carla::traffic_manager::DeviationDotProduct(), carla::geom::Math::DistanceArcToPoint(), carla::geom::Math::DistanceSquared(), carla::geom::Math::DistanceSquared2D(), carla::road::element::GeometrySpiral::DistanceTo(), carla::road::element::GeometryPoly3::DistanceTo(), carla::road::element::GeometryParamPoly3::DistanceTo(), carla::geom::Math::Dot(), carla::geom::Math::Dot2D(), carla::road::Map::FilterJunctionsByPosition(), carla::road::Map::FilterRoadsByPosition(), carla::geom::MeshFactory::GenerateLaneMarksForCenterLine(), carla::nav::Navigation::GetAgentRoute(), carla::traffic_manager::CollisionStage::GetBoundary(), carla::road::Map::GetClosestWaypointOnRoad(), carla::road::Lane::GetCornerPositions(), carla::traffic_manager::CollisionStage::GetGeodesicBoundary(), carla::geom::Transform::GetInverseMatrix(), carla::geom::BoundingBox::GetLocalVerticesNoRotation(), carla::geom::Transform::GetMatrix(), carla::nav::Navigation::GetPath(), carla::nav::Navigation::GetRandomLocation(), carla::rss::RssCheck::GetRoutingTargets(), carla::traffic_manager::MotionPlanStage::GetThreePointCircleRadius(), carla::nav::Navigation::GetWalkerPosition(), carla::nav::Navigation::GetWalkerTransform(), carla::traffic_manager::InMemoryMap::GetWaypoint(), carla::traffic_manager::InMemoryMap::GetWaypointsInDelta(), carla::client::WalkerAIController::GoToLocation(), carla::nav::Navigation::HasVehicleNear(), carla::geom::Rotation::InverseRotateVector(), MakeSafeUnitVector(), MakeUnitVector(), msgpack_object(), msgpack_pack(), msgpack_unpack(), carla::geom::Location::operator FVector(), carla::rpc::WalkerControl::operator FWalkerControl(), carla::rpc::WheelPhysicsControl::operator FWheelPhysicsControl(), carla::nav::WalkerEventVisitor::operator()(), operator*=(), operator+=(), operator-=(), operator-=(), operator/=(), carla::geom::operator<<(), operator==(), carla::road::element::GeometryLine::PosFromDist(), carla::road::element::GeometryArc::PosFromDist(), carla::road::element::GeometrySpiral::PosFromDist(), carla::road::element::GeometryPoly3::PosFromDist(), carla::road::element::GeometryParamPoly3::PosFromDist(), carla::ros2::ROS2::ProcessDataFromCollisionSensor(), CarlaRecorderQuery::QueryInfo(), carla::client::Rotate(), carla::geom::Math::RotatePointOnOrigin2D(), carla::geom::Rotation::RotateVector(), carla::road::Map::SDFToMesh(), carla::traffic_manager::SimpleWaypoint::SetLeftWaypoint(), carla::traffic_manager::SimpleWaypoint::SetRightWaypoint(), carla::traffic_manager::InMemoryMap::SetUpSpatialTree(), carla::nav::Navigation::SetWalkerDirectTargetIndex(), carla::nav::Navigation::SetWalkerLookAt(), carla::geom::Simplification::Simplificate(), SquaredLength(), SquaredLength2D(), TEST(), TEST(), TEST(), TEST(), TEST(), ToFVector(), carla::geom::GeoLocation::Transform(), carla::nav::WalkerManager::Update(), carla::traffic_manager::ALSM::UpdateData(), carla::traffic_manager::ALSM::UpdateUnregisteredActorsData(), carla::client::detail::WalkerNavigation::UpdateVehiclesInCrowd(), carla::sensor::data::LidarDetection::WriteDetection(), carla::sensor::data::SemanticLidarDetection::WriteDetection() , 以及 carla::sensor::data::LidarData::WritePointSync().

◆ z

float carla::geom::Vector3D::z = 0.0f

在文件 geom/Vector3D.h28 行定义.

被这些函数引用 Abs(), CaService::AddBasicVehicleContainerHighFrequency(), carla::road::Map::AddElementToRtree(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::nav::Navigation::AddWalker(), carla::road::MapBuilder::ComputeSignalTransform(), carla::geom::BoundingBox::Contains(), carla::geom::Math::Cross(), carla::traffic_manager::DeviationDotProduct(), carla::geom::Math::DistanceSquared(), carla::geom::Math::Dot(), carla::nav::Navigation::GetAgentRoute(), carla::road::Map::GetClosestWaypointOnRoad(), carla::road::Lane::GetCornerPositions(), carla::road::Road::GetDirectedPointIn(), carla::geom::Transform::GetInverseMatrix(), carla::geom::BoundingBox::GetLocalVerticesNoRotation(), carla::geom::Transform::GetMatrix(), carla::nav::Navigation::GetPath(), carla::nav::Navigation::GetRandomLocation(), carla::rss::RssCheck::GetRoutingTargets(), carla::nav::Navigation::GetWalkerPosition(), carla::nav::Navigation::GetWalkerTransform(), carla::traffic_manager::InMemoryMap::GetWaypoint(), carla::traffic_manager::InMemoryMap::GetWaypointsInDelta(), carla::client::WalkerAIController::GoToLocation(), carla::nav::Navigation::HasVehicleNear(), carla::geom::Rotation::InverseRotateVector(), MakeSafeUnitVector(), MakeUnitVector(), carla::geom::MeshFactory::MergeAndSmooth(), msgpack_object(), msgpack_pack(), msgpack_unpack(), carla::geom::Location::operator FVector(), carla::rpc::WalkerControl::operator FWalkerControl(), carla::rpc::WheelPhysicsControl::operator FWheelPhysicsControl(), carla::nav::WalkerEventVisitor::operator()(), operator*=(), operator+=(), operator-=(), operator-=(), operator/=(), carla::geom::operator<<(), operator==(), carla::ros2::ROS2::ProcessDataFromCollisionSensor(), CarlaRecorderQuery::QueryInfo(), carla::client::Rotate(), carla::geom::Rotation::RotateVector(), carla::road::Map::SDFToMesh(), carla::traffic_manager::InMemoryMap::SetUpSpatialTree(), carla::nav::Navigation::SetWalkerDirectTargetIndex(), carla::nav::Navigation::SetWalkerLookAt(), carla::geom::Simplification::Simplificate(), SquaredLength(), TEST(), TEST(), TEST(), TEST(), TEST(), ToFVector(), carla::geom::GeoLocation::Transform(), carla::traffic_manager::MotionPlanStage::Update(), carla::traffic_manager::CollisionStage::Update(), carla::nav::WalkerManager::Update(), carla::traffic_manager::ALSM::UpdateData(), carla::traffic_manager::ALSM::UpdateUnregisteredActorsData(), carla::client::detail::WalkerNavigation::UpdateVehiclesInCrowd(), carla::sensor::data::LidarDetection::WriteDetection(), carla::sensor::data::SemanticLidarDetection::WriteDetection() , 以及 carla::sensor::data::LidarData::WritePointSync().


该类的文档由以下文件生成: