File tree 2 files changed +9
-7
lines changed
common/autoware_lanelet2_utils/src
2 files changed +9
-7
lines changed Original file line number Diff line number Diff line change 16
16
17
17
#include < lanelet2_core/primitives/Lanelet.h>
18
18
19
+ #include < cstring>
19
20
namespace autoware ::lanelet2_utils
20
21
{
21
22
@@ -26,17 +27,17 @@ bool is_intersection_lanelet(const lanelet::ConstLanelet & lanelet)
26
27
27
28
bool is_straight_direction (const lanelet::ConstLanelet & lanelet)
28
29
{
29
- return strcmp (lanelet.attributeOr (k_turn_direction, " else" ), k_turn_direction_straight) == 0 ;
30
+ return std:: strcmp (lanelet.attributeOr (k_turn_direction, " else" ), k_turn_direction_straight) == 0 ;
30
31
}
31
32
32
33
bool is_left_direction (const lanelet::ConstLanelet & lanelet)
33
34
{
34
- return strcmp (lanelet.attributeOr (k_turn_direction, " else" ), k_turn_direction_left) == 0 ;
35
+ return std:: strcmp (lanelet.attributeOr (k_turn_direction, " else" ), k_turn_direction_left) == 0 ;
35
36
}
36
37
37
38
bool is_right_direction (const lanelet::ConstLanelet & lanelet)
38
39
{
39
- return strcmp (lanelet.attributeOr (k_turn_direction, " else" ), k_turn_direction_right) == 0 ;
40
+ return std:: strcmp (lanelet.attributeOr (k_turn_direction, " else" ), k_turn_direction_right) == 0 ;
40
41
}
41
42
42
43
std::optional<TurnDirection> get_turn_direction (const lanelet::ConstLanelet & lanelet)
Original file line number Diff line number Diff line change 16
16
17
17
#include < lanelet2_core/primitives/Lanelet.h>
18
18
19
+ #include < cstring>
19
20
namespace autoware ::lanelet2_utils
20
21
{
21
22
bool is_road_lane (const lanelet::ConstLanelet & lanelet)
22
23
{
23
- return strcmp (lanelet. attributeOr (lanelet::AttributeName::Subtype, " none " ), k_road_lane_type) ==
24
- 0 ;
24
+ return std::strcmp (
25
+ lanelet. attributeOr (lanelet::AttributeName::Subtype, " none " ), k_road_lane_type) == 0 ;
25
26
}
26
27
27
28
bool is_shoulder_lane (const lanelet::ConstLanelet & lanelet)
28
29
{
29
- return strcmp (
30
+ return std:: strcmp (
30
31
lanelet.attributeOr (lanelet::AttributeName::Subtype, " none" ), k_shoulder_lane_type) == 0 ;
31
32
}
32
33
33
34
bool is_bicycle_lane (const lanelet::ConstLanelet & lanelet)
34
35
{
35
- return strcmp (
36
+ return std:: strcmp (
36
37
lanelet.attributeOr (lanelet::AttributeName::Subtype, " none" ), k_bicycle_lane_type) == 0 ;
37
38
}
38
39
} // namespace autoware::lanelet2_utils
You can’t perform that action at this time.
0 commit comments