#include <Waypoint.h>
Public Member Functions | |
std::vector< SharedPtr< Landmark > > | GetAllLandmarksInDistance (double distance, bool stop_at_junction=false) const |
Returns a list of landmarks from the current position to a certain distance. More... | |
auto | GetDistance () const |
uint64_t | GetId () const |
Returns an unique Id identifying this waypoint. More... | |
SharedPtr< Junction > | GetJunction () const |
road::JuncId | GetJunctionId () const |
std::vector< SharedPtr< Landmark > > | GetLandmarksOfTypeInDistance (double distance, std::string filter_type, bool stop_at_junction=false) const |
Returns a list of landmarks from the current position to a certain distance Filters by specified type. More... | |
road::element::LaneMarking::LaneChange | GetLaneChange () const |
auto | GetLaneId () const |
double | GetLaneWidth () const |
SharedPtr< Waypoint > | GetLeft () const |
boost::optional< road::element::LaneMarking > | GetLeftLaneMarking () const |
std::vector< SharedPtr< Waypoint > > | GetNext (double distance) const |
std::vector< SharedPtr< Waypoint > > | GetNextUntilLaneEnd (double distance) const |
Returns a list of waypoints separated by distance from the current waypoint to the end of the lane. More... | |
std::vector< SharedPtr< Waypoint > > | GetPrevious (double distance) const |
std::vector< SharedPtr< Waypoint > > | GetPreviousUntilLaneStart (double distance) const |
Returns a list of waypoints separated by distance from the current waypoint to the start of the lane. More... | |
SharedPtr< Waypoint > | GetRight () const |
boost::optional< road::element::LaneMarking > | GetRightLaneMarking () const |
auto | GetRoadId () const |
auto | GetSectionId () const |
const geom::Transform & | GetTransform () const |
road::Lane::LaneType | GetType () const |
bool | IsJunction () const |
~Waypoint () | |
Private Member Functions | |
Waypoint (SharedPtr< const Map > parent, road::element::Waypoint waypoint) | |
Private Member Functions inherited from carla::NonCopyable | |
NonCopyable ()=default | |
NonCopyable (const NonCopyable &)=delete | |
NonCopyable (NonCopyable &&)=delete | |
NonCopyable & | operator= (const NonCopyable &)=delete |
NonCopyable & | operator= (NonCopyable &&)=delete |
Private Attributes | |
std::pair< const road::element::RoadInfoMarkRecord *, const road::element::RoadInfoMarkRecord * > | _mark_record |
SharedPtr< const Map > | _parent |
geom::Transform | _transform |
road::element::Waypoint | _waypoint |
Friends | |
class | Map |
Definition at line 27 of file client/Waypoint.h.
|
default |
|
private |
Definition at line 18 of file client/Waypoint.cpp.
References ~Waypoint().
Referenced by GetAllLandmarksInDistance(), GetLandmarksOfTypeInDistance(), GetLeft(), GetNext(), GetPrevious(), and GetRight().
std::vector< SharedPtr< Landmark > > carla::client::Waypoint::GetAllLandmarksInDistance | ( | double | distance, |
bool | stop_at_junction = false |
||
) | const |
Returns a list of landmarks from the current position to a certain distance.
Definition at line 218 of file client/Waypoint.cpp.
References _parent, _waypoint, and Waypoint().
Referenced by carla::client::World::GetTrafficLightsFromWaypoint(), and GetTransform().
|
inline |
Definition at line 54 of file client/Waypoint.h.
References _waypoint, and carla::road::element::Waypoint::s.
Referenced by GetNextUntilLaneEnd(), and GetPreviousUntilLaneStart().
|
inline |
Returns an unique Id identifying this waypoint.
The Id takes into account OpenDrive's road Id, lane Id, and s distance on its road segment up to half-centimetre precision.
Definition at line 38 of file client/Waypoint.h.
References _waypoint.
Definition at line 34 of file client/Waypoint.cpp.
References _parent, and IsJunction().
Referenced by GetTransform().
road::JuncId carla::client::Waypoint::GetJunctionId | ( | ) | const |
Definition at line 26 of file client/Waypoint.cpp.
References _parent, _waypoint, and carla::road::element::Waypoint::road_id.
Referenced by carla::client::Map::GetJunction(), and GetTransform().
std::vector< SharedPtr< Landmark > > carla::client::Waypoint::GetLandmarksOfTypeInDistance | ( | double | distance, |
std::string | filter_type, | ||
bool | stop_at_junction = false |
||
) | const |
Returns a list of landmarks from the current position to a certain distance Filters by specified type.
Definition at line 236 of file client/Waypoint.cpp.
References _parent, _waypoint, and Waypoint().
Referenced by GetTransform().
road::element::LaneMarking::LaneChange carla::client::Waypoint::GetLaneChange | ( | ) | const |
Definition at line 176 of file client/Waypoint.cpp.
References _mark_record, _waypoint, carla::road::Both, and carla::road::element::Waypoint::lane_id.
Referenced by GetTransform().
|
inline |
Definition at line 50 of file client/Waypoint.h.
References _waypoint, and carla::road::element::Waypoint::lane_id.
double carla::client::Waypoint::GetLaneWidth | ( | ) | const |
Definition at line 41 of file client/Waypoint.cpp.
References _parent, and _waypoint.
Referenced by GetTransform().
Definition at line 139 of file client/Waypoint.cpp.
References _parent, _waypoint, and Waypoint().
Referenced by GetTransform().
boost::optional< road::element::LaneMarking > carla::client::Waypoint::GetLeftLaneMarking | ( | ) | const |
Definition at line 155 of file client/Waypoint.cpp.
References _mark_record.
Referenced by GetTransform().
Definition at line 50 of file client/Waypoint.cpp.
References _parent, _waypoint, and Waypoint().
Referenced by GetNextUntilLaneEnd(), and GetTransform().
std::vector< SharedPtr< Waypoint > > carla::client::Waypoint::GetNextUntilLaneEnd | ( | double | distance | ) | const |
Returns a list of waypoints separated by distance from the current waypoint to the end of the lane.
Definition at line 70 of file client/Waypoint.cpp.
References _parent, _waypoint, GetDistance(), GetNext(), GetRoadId(), and carla::road::element::Waypoint::lane_id.
Referenced by GetTransform().
Definition at line 60 of file client/Waypoint.cpp.
References _parent, _waypoint, and Waypoint().
Referenced by GetPreviousUntilLaneStart(), and GetTransform().
std::vector< SharedPtr< Waypoint > > carla::client::Waypoint::GetPreviousUntilLaneStart | ( | double | distance | ) | const |
Returns a list of waypoints separated by distance from the current waypoint to the start of the lane.
Definition at line 99 of file client/Waypoint.cpp.
References _parent, _waypoint, GetDistance(), GetPrevious(), GetRoadId(), and carla::road::element::Waypoint::lane_id.
Referenced by GetTransform().
Definition at line 130 of file client/Waypoint.cpp.
References _parent, _waypoint, and Waypoint().
Referenced by GetTransform().
boost::optional< road::element::LaneMarking > carla::client::Waypoint::GetRightLaneMarking | ( | ) | const |
Definition at line 148 of file client/Waypoint.cpp.
References _mark_record.
Referenced by GetTransform().
|
inline |
Definition at line 42 of file client/Waypoint.h.
References _waypoint, and carla::road::element::Waypoint::road_id.
Referenced by GetNextUntilLaneEnd(), and GetPreviousUntilLaneStart().
|
inline |
Definition at line 46 of file client/Waypoint.h.
References _waypoint, and carla::road::element::Waypoint::section_id.
|
inline |
Definition at line 58 of file client/Waypoint.h.
References _transform, GetAllLandmarksInDistance(), GetJunction(), GetJunctionId(), GetLandmarksOfTypeInDistance(), GetLaneChange(), GetLaneWidth(), GetLeft(), GetLeftLaneMarking(), GetNext(), GetNextUntilLaneEnd(), GetPrevious(), GetPreviousUntilLaneStart(), GetRight(), GetRightLaneMarking(), GetType(), and IsJunction().
road::Lane::LaneType carla::client::Waypoint::GetType | ( | ) | const |
Definition at line 46 of file client/Waypoint.cpp.
References _parent, and _waypoint.
Referenced by GetTransform().
bool carla::client::Waypoint::IsJunction | ( | ) | const |
Definition at line 30 of file client/Waypoint.cpp.
References _parent, _waypoint, and carla::road::element::Waypoint::road_id.
Referenced by GetJunction(), and GetTransform().
|
friend |
Definition at line 105 of file client/Waypoint.h.
|
private |
Definition at line 118 of file client/Waypoint.h.
Referenced by GetLaneChange(), GetLeftLaneMarking(), and GetRightLaneMarking().
Definition at line 109 of file client/Waypoint.h.
Referenced by GetAllLandmarksInDistance(), GetJunction(), GetJunctionId(), GetLandmarksOfTypeInDistance(), GetLaneWidth(), GetLeft(), GetNext(), GetNextUntilLaneEnd(), GetPrevious(), GetPreviousUntilLaneStart(), GetRight(), GetType(), and IsJunction().
|
private |
Definition at line 113 of file client/Waypoint.h.
Referenced by GetTransform().
|
private |
Definition at line 111 of file client/Waypoint.h.
Referenced by GetAllLandmarksInDistance(), GetDistance(), GetId(), GetJunctionId(), GetLandmarksOfTypeInDistance(), GetLaneChange(), GetLaneId(), GetLaneWidth(), GetLeft(), GetNext(), GetNextUntilLaneEnd(), GetPrevious(), GetPreviousUntilLaneStart(), GetRight(), GetRoadId(), GetSectionId(), GetType(), and IsJunction().