scenario_simulator_v2 C++ API
Classes | Namespaces | Macros | Typedefs | Functions
lanelet_pose.hpp File Reference
#include <traffic_simulator/hdmap_utils/hdmap_utils.hpp>
Include dependency graph for lanelet_pose.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  traffic_simulator::lanelet_pose::CanonicalizedLaneletPose
 

Namespaces

 traffic_simulator
 
 traffic_simulator::lanelet_pose
 

Macros

#define DEFINE_COMPARISON_OPERATOR(OPERATOR)
 

Typedefs

using traffic_simulator::LaneletPose = traffic_simulator_msgs::msg::LaneletPose
 

Functions

bool traffic_simulator::isSameLaneletId (const CanonicalizedLaneletPose &, const CanonicalizedLaneletPose &)
 
bool traffic_simulator::isSameLaneletId (const CanonicalizedLaneletPose &, const lanelet::Id lanelet_id)
 

Macro Definition Documentation

◆ DEFINE_COMPARISON_OPERATOR

#define DEFINE_COMPARISON_OPERATOR (   OPERATOR)
Value:
bool operator OPERATOR(const CanonicalizedLaneletPose & rhs) const \
{ \
if ( \
static_cast<LaneletPose>(*this).lanelet_id == static_cast<LaneletPose>(rhs).lanelet_id && \
static_cast<LaneletPose>(*this).s OPERATOR static_cast<LaneletPose>(rhs).s) { \
return true; \
} \
return false; \
}
traffic_simulator_msgs::msg::LaneletPose LaneletPose
Definition: lanelet_pose.hpp:22

Note: The comparison operator for the CanonicalizedLaneletPose type compares the s values after making sure that the lanelet_id is the same. Offset and rpy values are not taken into account.