Deleted obsolete constructor
This commit is contained in:
parent
5f1c830d6d
commit
b793f0f3d3
|
@ -14,7 +14,12 @@ namespace carla {
|
||||||
namespace road {
|
namespace road {
|
||||||
namespace element {
|
namespace element {
|
||||||
|
|
||||||
constexpr uint32_t FLAGS =
|
/// @todo Temporary flags to search lanes where we can find road marks.
|
||||||
|
/// This needs to be expanded searching in shoulders too, but since
|
||||||
|
/// shouders have a small width, they can cause problems while finding
|
||||||
|
/// the nearest center of a lane given a location that are in a road,
|
||||||
|
/// but very close to a shoulder.
|
||||||
|
static constexpr uint32_t FLAGS =
|
||||||
static_cast<uint32_t>(Lane::LaneType::Driving) |
|
static_cast<uint32_t>(Lane::LaneType::Driving) |
|
||||||
static_cast<uint32_t>(Lane::LaneType::Bidirectional) |
|
static_cast<uint32_t>(Lane::LaneType::Bidirectional) |
|
||||||
static_cast<uint32_t>(Lane::LaneType::Biking) |
|
static_cast<uint32_t>(Lane::LaneType::Biking) |
|
||||||
|
@ -22,8 +27,6 @@ namespace element {
|
||||||
|
|
||||||
/// Calculate the lane markings that need to be crossed from @a lane_id_origin
|
/// Calculate the lane markings that need to be crossed from @a lane_id_origin
|
||||||
/// to @a lane_id_destination.
|
/// to @a lane_id_destination.
|
||||||
///
|
|
||||||
/// @todo This should use the info in the OpenDrive instead.
|
|
||||||
static std::vector<LaneMarking> CrossingAtSameSection(
|
static std::vector<LaneMarking> CrossingAtSameSection(
|
||||||
const Map &map,
|
const Map &map,
|
||||||
const Waypoint *w0,
|
const Waypoint *w0,
|
||||||
|
|
|
@ -73,20 +73,6 @@ namespace element {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
LaneMarking::LaneMarking(Type in_type)
|
|
||||||
: type(in_type) {
|
|
||||||
switch (type) {
|
|
||||||
case Type::Broken:
|
|
||||||
lane_change = LaneChange::Both;
|
|
||||||
break;
|
|
||||||
case Type::Solid:
|
|
||||||
lane_change = LaneChange::None;
|
|
||||||
break;
|
|
||||||
default:
|
|
||||||
throw_exception(std::runtime_error("lane type not supported"));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
LaneMarking::LaneMarking(const RoadInfoMarkRecord &info)
|
LaneMarking::LaneMarking(const RoadInfoMarkRecord &info)
|
||||||
: type(GetType(info.GetType())),
|
: type(GetType(info.GetType())),
|
||||||
color(GetColor(info.GetColor())),
|
color(GetColor(info.GetColor())),
|
||||||
|
|
|
@ -53,9 +53,6 @@ namespace element {
|
||||||
Both = 0x03 // 11
|
Both = 0x03 // 11
|
||||||
};
|
};
|
||||||
|
|
||||||
/// @todo Temporary constructor until LaneCrossingCalculator is fixed.
|
|
||||||
LaneMarking(Type type);
|
|
||||||
|
|
||||||
explicit LaneMarking(const RoadInfoMarkRecord &info);
|
explicit LaneMarking(const RoadInfoMarkRecord &info);
|
||||||
|
|
||||||
Type type = Type::None;
|
Type type = Type::None;
|
||||||
|
|
Loading…
Reference in New Issue