maliput
api/compare.h File Reference
#include <optional>
#include <string>
#include "maliput/api/branch_point.h"
#include "maliput/api/junction.h"
#include "maliput/api/lane_data.h"
#include "maliput/api/regions.h"
#include "maliput/api/road_geometry.h"
#include "maliput/api/segment.h"
#include "maliput/common/compare.h"
Include dependency graph for api/compare.h:
This graph shows which files directly or indirectly include this file:

Namespaces

 maliput
 Code in this file is inspired by: https://github.com/RobotLocomotion/drake/blob/master/common/text_logging.h.
 
 maliput::api
 

Functions

common::ComparisonResult< LanePositionResult > IsLanePositionResultClose (const LanePositionResult &lpr_a, const LanePositionResult &lpr_b, double tolerance)
 Compares equality within tolerance deviation of the maliput::api::LanePositionResult lpr_a and lpr_B. More...
 
common::ComparisonResult< RoadPositionResult > IsRoadPositionResultClose (const maliput::api::RoadPositionResult &rpr_a, const maliput::api::RoadPositionResult &rpr_b, double tolerance)
 Compares equality within tolerance deviation of the maliput::api::RoadPositionResult rpr_a and rpr_B. More...
 
common::ComparisonResult< InertialPosition > IsInertialPositionClose (const InertialPosition &pos1, const InertialPosition &pos2, double tolerance)
 Compares equality within tolerance deviation of two InertialPosition objects. More...
 
common::ComparisonResult< LanePosition > IsLanePositionClose (const LanePosition &pos1, const LanePosition &pos2, double tolerance)
 Compares equality within tolerance deviation of two LanePosition objects. More...
 
common::ComparisonResult< Rotation > IsRotationClose (const Rotation &rot1, const Rotation &rot2, double tolerance)
 Compares equality within tolerance deviation of two Rotation objects. More...
 
common::ComparisonResult< RBounds > IsRBoundsClose (const RBounds &rbounds1, const RBounds &rbounds2, double tolerance)
 Compares equality within tolerance deviation of two RBounds objects. More...
 
common::ComparisonResult< HBounds > IsHBoundsClose (const HBounds &hbounds1, const HBounds &hbounds2, double tolerance)
 Compares equality within tolerance deviation of two HBounds objects. More...
 
common::ComparisonResult< LaneEnd > IsLaneEndEqual (const LaneEnd &lane_end1, const LaneEnd &lane_end2)
 Compares equality of two LaneEnd objects. More...
 
common::ComparisonResult< Junction > IsEqual (const char *a_expression, const char *b_expression, const Junction *a, const Junction *b)
 Compares equality of two Junction objects. More...
 
common::ComparisonResult< Segment > IsEqual (const char *a_expression, const char *b_expression, const Segment *a, const Segment *b)
 Compares equality of two Segment objects. More...
 
common::ComparisonResult< Lane > IsEqual (const char *a_expression, const char *b_expression, const Lane *a, const Lane *b)
 Compares equality of two Lane objects. More...
 
common::ComparisonResult< BranchPoint > IsEqual (const char *a_expression, const char *b_expression, const BranchPoint *a, const BranchPoint *b)
 Compares equality of two BranchPoint objects. More...
 
common::ComparisonResult< bool > IsEqual (const char *a_expression, const char *b_expression, bool a, bool b)
 Compares equality of two booleans. More...
 
common::ComparisonResult< doubleIsEqual (const char *a_expression, const char *b_expression, double a, double b)
 Compares equality of two doubles. More...
 
common::ComparisonResult< std::size_t > IsEqual (const char *a_expression, const char *b_expression, std::size_t a, std::size_t b)
 Compares equality of two std::size_t. More...
 
template<typename T >
common::ComparisonResult< TypeSpecificIdentifier< T > > IsEqual (const char *a_expression, const char *b_expression, const TypeSpecificIdentifier< T > &a, const TypeSpecificIdentifier< T > &b)
 Compares equality of two TypeSpecificIdentifier<T>. More...
 
common::ComparisonResult< SRange > IsEqual (const SRange &s_range_1, const SRange &s_range_2)
 Compares equality of two SRanges. More...
 
common::ComparisonResult< LaneSRange > IsEqual (const LaneSRange &lane_s_range_1, const LaneSRange &lane_s_range_2)
 Compares equality of two LaneSRange. More...
 
common::ComparisonResult< std::vector< LaneSRange > > IsEqual (const std::vector< LaneSRange > &lane_s_ranges_1, const std::vector< LaneSRange > &lane_s_ranges_2)
 Compares equality of two std::vector<LaneSRange>. More...
 
common::ComparisonResult< LaneSRoute > IsEqual (const LaneSRoute &lane_s_route_1, const LaneSRoute &lane_s_route_2)
 Compares equality of two LaneSRoute. More...
 
common::ComparisonResult< InertialPosition > IsEqual (const InertialPosition &inertial_position_1, const InertialPosition &inertial_position_2)
 Compares equality of two InertialPosition. More...
 
common::ComparisonResult< Rotation > IsEqual (const Rotation &rotation_1, const Rotation &rotation_2)
 Compares equality of two Rotation. More...
 
common::ComparisonResult< LaneEnd::Which > IsEqual (const LaneEnd::Which &which_1, const LaneEnd::Which &which_2)
 Compares equality of two LaneEnd::Which. More...
 
common::ComparisonResult< LaneEnd > IsEqual (const LaneEnd &lane_end_1, const LaneEnd &lane_end_2)
 Compares equality of two LaneEnd. More...
 
std::optional< std::string > CheckIdIndexing (const RoadGeometry *road_geometry)
 Checks that the given RoadGeometry's ById() indexing is correct. More...