#include <Transform.h>
Public Member Functions | |
Vector3D | GetForwardVector () const |
std::array< float, 16 > | GetInverseMatrix () const |
Computes the 4-matrix form of the inverse transformation. More... | |
std::array< float, 16 > | GetMatrix () const |
Computes the 4-matrix form of the transformation. More... | |
Vector3D | GetRightVector () const |
Vector3D | GetUpVector () const |
void | InverseTransformPoint (Vector3D &in_point) const |
Applies the inverse of this transformation to in_point. More... | |
MSGPACK_DEFINE_ARRAY (location, rotation) | |
bool | operator!= (const Transform &rhs) const |
bool | operator== (const Transform &rhs) const |
Transform ()=default | |
Transform (const Location &in_location) | |
Transform (const Location &in_location, const Rotation &in_rotation) | |
void | TransformPoint (Vector3D &in_point) const |
Applies this transformation to in_point (first translation then rotation). More... | |
void | TransformVector (Vector3D &in_vector) const |
Applies this transformation to in_vector (rotation only). More... | |
Public Attributes | |
Location | location |
Rotation | rotation |
Definition at line 23 of file geom/Transform.h.
|
default |
|
inline |
Definition at line 42 of file geom/Transform.h.
|
inline |
Definition at line 46 of file geom/Transform.h.
|
inline |
Definition at line 54 of file geom/Transform.h.
References carla::geom::Rotation::GetForwardVector().
Referenced by carla::road::Map::CreateRtree(), carla::client::TrafficLight::GetStopWaypoints(), and carla::traffic_manager::MotionPlanStage::Update().
|
inline |
Computes the 4-matrix form of the inverse transformation.
Definition at line 113 of file geom/Transform.h.
References InverseTransformPoint(), carla::geom::Rotation::pitch, carla::geom::Rotation::roll, carla::geom::Math::ToRadians(), carla::geom::Vector3D::x, carla::geom::Vector3D::y, carla::geom::Rotation::yaw, and carla::geom::Vector3D::z.
|
inline |
Computes the 4-matrix form of the transformation.
Definition at line 90 of file geom/Transform.h.
References carla::geom::Rotation::pitch, carla::geom::Rotation::roll, carla::geom::Math::ToRadians(), carla::geom::Vector3D::x, carla::geom::Vector3D::y, carla::geom::Rotation::yaw, and carla::geom::Vector3D::z.
|
inline |
Definition at line 58 of file geom/Transform.h.
References carla::geom::Rotation::GetRightVector().
|
inline |
Definition at line 62 of file geom/Transform.h.
References carla::geom::Rotation::GetUpVector().
|
inline |
Applies the inverse of this transformation to in_point.
Definition at line 82 of file geom/Transform.h.
References carla::geom::Rotation::InverseRotateVector(), and location.
Referenced by carla::geom::BoundingBox::Contains(), GetInverseMatrix(), and TEST().
|
inline |
Definition at line 146 of file geom/Transform.h.
References Transform().
|
inline |
Definition at line 142 of file geom/Transform.h.
|
inline |
Applies this transformation to in_point (first translation then rotation).
Definition at line 67 of file geom/Transform.h.
References location, and carla::geom::Rotation::RotateVector().
Referenced by carla::road::Map::GetAllCrosswalkZones(), carla::client::TrafficLight::GetStopWaypoints(), carla::geom::BoundingBox::GetWorldVertices(), and TEST().
|
inline |
Applies this transformation to in_vector (rotation only).
Definition at line 75 of file geom/Transform.h.
References carla::geom::Rotation::RotateVector().
Location carla::geom::Transform::location |
Definition at line 30 of file geom/Transform.h.
Referenced by carla::road::Map::AddElementToRtree(), carla::nav::Navigation::AddOrUpdateVehicle(), carla::rss::RssCheck::AppendRoutingTarget(), carla::road::MapBuilder::CreateJunctionBoundingBoxes(), carla::rss::RssCheck::CreateWorldModel(), carla::road::Map::FilterRoadsByPosition(), carla::client::detail::Simulator::GetActorLocation(), carla::road::Map::GetAllCrosswalkZones(), carla::rss::RssCheck::GetRoutingTargets(), carla::nav::Navigation::GetWalkerTransform(), InverseTransformPoint(), carla::client::LaneInvasionCallback::MakeBounds(), operator==(), carla::ros2::ROS2::ProcessDataFromCamera(), carla::ros2::ROS2::ProcessDataFromCollisionSensor(), carla::ros2::ROS2::ProcessDataFromDVS(), carla::ros2::ROS2::ProcessDataFromGNSS(), carla::ros2::ROS2::ProcessDataFromIMU(), carla::ros2::ROS2::ProcessDataFromLidar(), carla::ros2::ROS2::ProcessDataFromRadar(), carla::ros2::ROS2::ProcessDataFromSemanticLidar(), carla::road::Map::SDFToMesh(), carla::client::detail::Client::SpawnActorWithParent(), TransformPoint(), carla::traffic_manager::MotionPlanStage::Update(), carla::traffic_manager::ALSM::UpdateData(), and carla::traffic_manager::ALSM::UpdateUnregisteredActorsData().
Rotation carla::geom::Transform::rotation |
Definition at line 32 of file geom/Transform.h.
Referenced by carla::nav::Navigation::AddOrUpdateVehicle(), carla::road::Map::GetAllCrosswalkZones(), carla::rss::RssCheck::GetSpeed(), carla::road::Map::GetTreesTransform(), carla::nav::Navigation::GetWalkerTransform(), carla::client::LaneInvasionCallback::MakeBounds(), operator==(), carla::ros2::ROS2::ProcessDataFromCamera(), carla::ros2::ROS2::ProcessDataFromCollisionSensor(), carla::ros2::ROS2::ProcessDataFromDVS(), carla::ros2::ROS2::ProcessDataFromGNSS(), carla::ros2::ROS2::ProcessDataFromIMU(), carla::ros2::ROS2::ProcessDataFromLidar(), carla::ros2::ROS2::ProcessDataFromRadar(), carla::ros2::ROS2::ProcessDataFromSemanticLidar(), carla::traffic_manager::MotionPlanStage::Update(), carla::traffic_manager::ALSM::UpdateData(), and carla::traffic_manager::ALSM::UpdateUnregisteredActorsData().