ROS2 Learning
regular_vehicle.hpp
1
12#ifndef VEHICLE_BASE_REGULAR_VEHICLE_HPP
13#define VEHICLE_BASE_REGULAR_VEHICLE_HPP
14
15#include <iostream>
16
17// base abstract class
18namespace vehicle_base
19{
21 {
22 public:
23 // this method "initialize" is necessary to init an object of this
24 // class due to the fact that plugin lib doesn't allow constructors
25 // with parameters
26 virtual void initialize(std::string vehicleType) = 0;
27 virtual int setNumPassengers() = 0;
28 virtual std::string getVehicleType() = 0;
29 virtual ~RegularVehicle(){}
30
31 protected:
33 };
34}
35
36#endif // END VEHICLE_BASE_REGULAR_VEHICLE_HPP
Definition: regular_vehicle.hpp:21