27 #include "gflags/gflags.h" 29 #include "modules/common/proto/pnc_point.pb.h" 30 #include "modules/common/vehicle_state/proto/vehicle_state.pb.h" 31 #include "modules/routing/proto/routing.pb.h" 100 common::SLPoint *sl_point,
LaneWaypoint *waypoint)
const;
102 common::SLPoint *sl_point,
LaneWaypoint *waypoint)
const;
144 const double look_forward);
146 bool Shrink(
const double s,
const double look_backward,
147 const double look_forward);
150 const double look_backward,
const double look_forward);
158 void SetId(
const std::string &
id);
159 const std::string &
Id()
const;
195 const routing::LaneWaypoint &waypoint);
201 const routing::LaneWaypoint &waypoint);
211 bool can_exit_ =
false;
216 bool is_on_segment_ =
false;
222 bool is_neighbor_ =
false;
224 routing::ChangeLaneType next_action_ = routing::FORWARD;
226 routing::ChangeLaneType previous_action_ = routing::FORWARD;
235 bool stop_for_destination_ =
false;
bool IsWaypointOnSegment(const LaneWaypoint &waypoint) const
Check if a waypoint is on segment.
routing::ChangeLaneType NextAction() const
class RouteSegments
Definition: route_segments.h:50
void SetId(const std::string &id)
bool IsConnectedSegment(const RouteSegments &other) const
Check if we can reach the other segment from current segment just by following lane.
bool CanDriveFrom(const LaneWaypoint &waypoint) const
Check whether the map allows a vehicle can reach current RouteSegment from a point on a lane (LaneWay...
PlanningContext is the runtime context in planning. It is persistent across multiple frames...
Definition: atomic_hash_map.h:25
bool Stitch(const RouteSegments &other)
const LaneWaypoint & RouteEndWaypoint() const
static bool WithinLaneSegment(const LaneSegment &lane_segment, const LaneWaypoint &waypoint)
void SetCanExit(bool can_exit)
const std::string & Id() const
bool GetWaypoint(const double s, LaneWaypoint *waypoint) const
routing::ChangeLaneType PreviousAction() const
void SetIsNeighborSegment(bool is_neighbor)
void SetRouteEndWaypoint(const LaneWaypoint &waypoint)
void SetNextAction(routing::ChangeLaneType action)
void SetProperties(const RouteSegments &other)
Copy the properties of other segments to current one.
Implements a class of 2-dimensional vectors.
Definition: vec2d.h:42
void SetPreviousAction(routing::ChangeLaneType action)
void SetStopForDestination(bool stop_for_destination)
LaneWaypoint FirstWaypoint() const
bool IsNeighborSegment() const
bool Shrink(const common::math::Vec2d &point, const double look_backward, const double look_forward)
LaneWaypoint LastWaypoint() const
bool GetProjection(const common::PointENU &point_enu, common::SLPoint *sl_point, LaneWaypoint *waypoint) const
void SetIsOnSegment(bool on_segment)
bool StopForDestination() const
static double Length(const RouteSegments &segments)