Carma-platform v4.2.0
CARMA Platform is built on robot operating system (ROS) and utilizes open source software (OSS) that enables Cooperative Driving Automation (CDA) features to allow Automated Driving Systems to interact and cooperate with infrastructure and other vehicles through communication.
|
Position in a track based coordinate system where the axis are downtrack and crosstrack. Positive crosstrack is to the left of the reference line. More...
#include <TrackPos.hpp>
Public Member Functions | |
TrackPos (double down_track, double cross_track) | |
Constructor. More... | |
TrackPos (const lanelet::ArcCoordinates &arc_coord) | |
Constructor from lanelet ArcCoordinates which are converted to TrackPos where downtrack = ArcCoordinates.length and crosstrack = -ArcCoordinates.distance. More... | |
lanelet::ArcCoordinates | toArcCoordinates () |
Returns a lanelet ArcCoordinate built from this TrackPos where downtrack = ArcCoordinates.length and crosstrack = -ArcCoordinates.distance. More... | |
bool | operator== (const TrackPos &other) const |
bool | operator!= (const TrackPos &other) const |
Public Attributes | |
double | downtrack = 0 |
double | crosstrack = 0 |
Position in a track based coordinate system where the axis are downtrack and crosstrack. Positive crosstrack is to the left of the reference line.
The position of a point relative to a reference line. The perpendicular distance from the point to the reference line is the crosstrack The distance to the intersection of the perpendicular from the start of the line is the downtrack distance If an x,y point would be located to the right of the reference line then the crosstrack is positive. It is negative if on the left side of the line. NOTE: The positive/negative crosstrack side is flipped relative to a lanelet::ArcCoordinate Most utility functions will assume that the downtrack/crosstrack values are specified in meters
Definition at line 34 of file TrackPos.hpp.
|
inline |
Constructor.
down_track | The downtrack distance |
cross_track | The crosstrack distance |
Definition at line 45 of file TrackPos.hpp.
|
inline |
Constructor from lanelet ArcCoordinates which are converted to TrackPos where downtrack = ArcCoordinates.length and crosstrack = -ArcCoordinates.distance.
arc_coord | ArcCoordinate to copy |
Definition at line 54 of file TrackPos.hpp.
|
inline |
Definition at line 74 of file TrackPos.hpp.
|
inline |
Definition at line 69 of file TrackPos.hpp.
References crosstrack, and downtrack.
|
inline |
Returns a lanelet ArcCoordinate built from this TrackPos where downtrack = ArcCoordinates.length and crosstrack = -ArcCoordinates.distance.
Definition at line 63 of file TrackPos.hpp.
References crosstrack, and downtrack.
double carma_wm::TrackPos::crosstrack = 0 |
Definition at line 38 of file TrackPos.hpp.
Referenced by route::RouteGeneratorWorker::bumperPoseCb(), carma_wm_ctrl::WMBroadcaster::distToNearestActiveGeofence(), operator==(), carma_wm::CARMAWorldModel::pointFromRouteTrackPos(), platoon_strategic_ihp::PlatoonStrategicIHPPlugin::pose_cb(), carma_wm::CARMAWorldModel::routeTrackPos(), carma_wm::geometry::selectFirstSegment(), toArcCoordinates(), and carma_wm::CARMAWorldModel::toRoadwayObstacle().
double carma_wm::TrackPos::downtrack = 0 |
Definition at line 37 of file TrackPos.hpp.
Referenced by route::RouteGeneratorWorker::bumperPoseCb(), route::RouteGeneratorWorker::composeRouteMarkerMsg(), carma_wm_ctrl::WMBroadcaster::distToNearestActiveGeofence(), carma_wm::query::getAffectedLaneletOrAreas(), carma_wm::CARMAWorldModel::getLaneletsBetween(), carma_wm::CARMAWorldModel::getNearestObjInLane(), carma_wm::geometry::matchSegment(), carma_wm::query::nonConnectedAdjacentLeft(), operator==(), carma_wm::CARMAWorldModel::pointFromRouteTrackPos(), platoon_strategic_ihp::PlatoonStrategicIHPPlugin::pose_cb(), carma_wm::CARMAWorldModel::routeTrackPos(), carma_wm::CARMAWorldModel::sampleRoutePoints(), carma_wm::geometry::selectFirstSegment(), carma_wm_ctrl::WMBroadcaster::splitLaneletWithPoint(), carma_wm_ctrl::WMBroadcaster::splitOppositeLaneletWithPoint(), toArcCoordinates(), and carma_wm::CARMAWorldModel::toRoadwayObstacle().