ROS2 Learning
CPP
06 Plugins
vehicle_base
include
vehicle_base
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
18
namespace
vehicle_base
19
{
20
class
RegularVehicle
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
:
32
RegularVehicle
(){}
33
};
34
}
35
36
#endif
// END VEHICLE_BASE_REGULAR_VEHICLE_HPP
vehicle_base::RegularVehicle
Definition:
regular_vehicle.hpp:21
Generated by
1.9.3