Skip to content

refactor(autoware_lanelet2_utils)!: move everything to namespace experimental #372

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

#include <optional>

namespace autoware::lanelet2_utils
namespace autoware::experimental::lanelet2_utils
{

static constexpr const char * k_turn_direction = "turn_direction";
Expand Down Expand Up @@ -68,5 +68,5 @@ bool is_right_direction(const lanelet::ConstLanelet & lanelet);
*/
std::optional<TurnDirection> get_turn_direction(const lanelet::ConstLanelet & lanelet);

} // namespace autoware::lanelet2_utils
} // namespace autoware::experimental::lanelet2_utils
#endif // AUTOWARE__LANELET2_UTILS__INTERSECTION_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

#include <lanelet2_core/Forward.h>

namespace autoware::lanelet2_utils
namespace autoware::experimental::lanelet2_utils
{
static constexpr const char * k_road_lane_type = "road";
static constexpr const char * k_shoulder_lane_type = "road_shoulder";
Expand Down Expand Up @@ -58,5 +58,5 @@ bool is_shoulder_lane(const lanelet::ConstLanelet & lanelet);
* @return if the lanelet is bicycle_lane or not
*/
bool is_bicycle_lane(const lanelet::ConstLanelet & lanelet);
} // namespace autoware::lanelet2_utils
} // namespace autoware::experimental::lanelet2_utils
#endif // AUTOWARE__LANELET2_UTILS__KIND_HPP_
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
#include <optional>
#include <vector>

namespace autoware::lanelet2_utils
namespace autoware::experimental::lanelet2_utils
{
/**
* @brief instantiate RoutingGraph from given LaneletMap only from "road" lanes
Expand Down Expand Up @@ -181,6 +181,6 @@ lanelet::ConstLanelets sibling_lanelets(
*/
lanelet::ConstLanelets from_ids(
const lanelet::LaneletMapConstPtr lanelet_map, const std::vector<lanelet::Id> & ids);
} // namespace autoware::lanelet2_utils
} // namespace autoware::experimental::lanelet2_utils

#endif // AUTOWARE__LANELET2_UTILS__TOPOLOGY_HPP_
4 changes: 2 additions & 2 deletions common/autoware_lanelet2_utils/src/intersection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <lanelet2_core/primitives/Lanelet.h>

#include <cstring>
namespace autoware::lanelet2_utils
namespace autoware::experimental::lanelet2_utils
{

bool is_intersection_lanelet(const lanelet::ConstLanelet & lanelet)
Expand Down Expand Up @@ -54,4 +54,4 @@ std::optional<TurnDirection> get_turn_direction(const lanelet::ConstLanelet & la
return std::nullopt;
}

} // namespace autoware::lanelet2_utils
} // namespace autoware::experimental::lanelet2_utils
4 changes: 2 additions & 2 deletions common/autoware_lanelet2_utils/src/kind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
#include <lanelet2_core/primitives/Lanelet.h>

#include <cstring>
namespace autoware::lanelet2_utils
namespace autoware::experimental::lanelet2_utils
{
bool is_road_lane(const lanelet::ConstLanelet & lanelet)
{
Expand All @@ -36,4 +36,4 @@ bool is_bicycle_lane(const lanelet::ConstLanelet & lanelet)
return std::strcmp(
lanelet.attributeOr(lanelet::AttributeName::Subtype, "none"), k_bicycle_lane_type) == 0;
}
} // namespace autoware::lanelet2_utils
} // namespace autoware::experimental::lanelet2_utils
4 changes: 2 additions & 2 deletions common/autoware_lanelet2_utils/src/topology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

#include <vector>

namespace autoware::lanelet2_utils
namespace autoware::experimental::lanelet2_utils
{

static constexpr size_t k_normal_bundle_max_size = 10;
Expand Down Expand Up @@ -262,4 +262,4 @@ lanelet::ConstLanelets from_ids(
}) |
ranges::to<std::vector>();
}
} // namespace autoware::lanelet2_utils
} // namespace autoware::experimental::lanelet2_utils
4 changes: 2 additions & 2 deletions common/autoware_lanelet2_utils/test/intersection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace fs = std::filesystem;

namespace autoware
namespace autoware::experimental
{
class TestWithIntersectionCrossingMap : public ::testing::Test
{
Expand Down Expand Up @@ -110,7 +110,7 @@ TEST_F(TestWithIntersectionCrossingMap, get_turn_direction)
}
}

} // namespace autoware
} // namespace autoware::experimental

int main(int argc, char ** argv)
{
Expand Down
4 changes: 2 additions & 2 deletions common/autoware_lanelet2_utils/test/kind.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@

namespace fs = std::filesystem;

namespace autoware
namespace autoware::experimental
{
class TestWithRoadShoulderHighwayMap : public ::testing::Test
{
Expand Down Expand Up @@ -88,7 +88,7 @@ TEST_F(TestWithIntersectionCrossingMap, is_shoulder_lane)
EXPECT_EQ(lanelet2_utils::is_shoulder_lane(ll), false);
EXPECT_EQ(lanelet2_utils::is_bicycle_lane(ll), true);
}
} // namespace autoware
} // namespace autoware::experimental

int main(int argc, char ** argv)
{
Expand Down
4 changes: 2 additions & 2 deletions common/autoware_lanelet2_utils/test/topology.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@

namespace fs = std::filesystem;

namespace autoware
namespace autoware::experimental
{

class TestWithIntersectionCrossingMap : public ::testing::Test
Expand Down Expand Up @@ -289,7 +289,7 @@ TEST_F(TestWithIntersectionCrossingInverseMap, left_lanelets_with_opposite_witho
EXPECT_EQ(lefts[0].id(), 2252);
}

} // namespace autoware
} // namespace autoware::experimental

int main(int argc, char ** argv)
{
Expand Down
Loading