Deleted obsolete constructor

This commit is contained in:
Marc Garcia Puig 2019-04-02 16:15:15 +02:00
parent 5f1c830d6d
commit b793f0f3d3
3 changed files with 6 additions and 20 deletions

View File

@ -14,7 +14,12 @@ namespace carla {
namespace road {
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::Bidirectional) |
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
/// to @a lane_id_destination.
///
/// @todo This should use the info in the OpenDrive instead.
static std::vector<LaneMarking> CrossingAtSameSection(
const Map &map,
const Waypoint *w0,

View File

@ -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)
: type(GetType(info.GetType())),
color(GetColor(info.GetColor())),

View File

@ -53,9 +53,6 @@ namespace element {
Both = 0x03 // 11
};
/// @todo Temporary constructor until LaneCrossingCalculator is fixed.
LaneMarking(Type type);
explicit LaneMarking(const RoadInfoMarkRecord &info);
Type type = Type::None;