Class DriverFactory

Inheritance Relationships

Derived Type

Class Documentation

class DriverFactory

The hardware interface internally uses a factory to create and configure a driver to interact with the Robotiq Gripper. A factory is used to keep the code cleaner but also to simplify testing. With a factory, we can test that the parameters read by the hardware interface are correctly parsed and passed down to the driver. A factory can also be mocked to return different implementation of the Driver (or mocks) that do not require interaction with the real hardware.

Subclassed by robotiq_driver::DefaultDriverFactory

Public Functions

virtual std::unique_ptr<Driver> create(const hardware_interface::HardwareInfo &info) const = 0