maliput
mock_geometry.h File Reference

Detailed Description

Mock concrete implementation of maliput geometry API, useful for tests.

The classes in this file are concrete implementations of the maliput geometry API, built on top of the geometry_base base classes. The only difference between these classes and geometry_base is that all the remaining pure virtual methods in geometry_base (i.e., the methods involving actual lane-frame and Inertial-frame geometry) have been provided with implementations that simply throw std::exception. These "Mock" classes do provide sufficient functionality to exercise the geometry API's object graph.

All virtual methods are overridable (i.e., none are marked final). Test implementors may re-implement methods as they see fit.

Include dependency graph for mock_geometry.h:
This graph shows which files directly or indirectly include this file:

Classes

class  MockRoadGeometry
 Mock api::RoadGeometry implementation; see mock_geometry.h. More...
 
class  MockBranchPoint
 Mock api::BranchPoint implementation; see mock_geometry.h. More...
 
class  MockJunction
 Mock api::Junction implementation; see mock_geometry.h. More...
 
class  MockSegment
 Mock api::Segment implementation; see mock_geometry.h. More...
 
class  MockLane
 Mock api::Lane implementation; see mock_geometry.h. More...
 

Namespaces

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