23 #ifndef CLOE_COMPONENT_DRIVER_REQUEST_HPP_ 24 #define CLOE_COMPONENT_DRIVER_REQUEST_HPP_ 32 using Component::Component;
39 virtual boost::optional<double>
acceleration()
const = 0;
72 using DriverRequest::DriverRequest;
76 boost::optional<double>
acceleration()
const override {
return acceleration_; }
79 boost::optional<double>
steering_angle()
const override {
return steering_angle_; }
84 acceleration_.reset();
85 steering_angle_.reset();
91 acceleration_.reset();
92 steering_angle_.reset();
96 boost::optional<double> acceleration_{0.0};
97 boost::optional<double> steering_angle_{0.0};
102 #endif // CLOE_COMPONENT_DRIVER_REQUEST_HPP_ virtual boost::optional< double > acceleration() const =0
Duration process(const Sync &sync) override
Definition: driver_request.hpp:82
virtual bool has_steering_angle() const =0
virtual bool has_acceleration() const =0
bool has_acceleration() const override
Definition: driver_request.hpp:77
boost::optional< double > acceleration() const override
Definition: driver_request.hpp:76
Definition: driver_request.hpp:70
void reset() override
Definition: driver_request.hpp:89
Definition: driver_request.hpp:30
Definition: coordinator.hpp:36
Duration process(const Sync &sync) override
Definition: component.hpp:182
std::chrono::nanoseconds Duration
Definition: duration.hpp:45
bool has_steering_angle() const override
Definition: driver_request.hpp:80
Definition: component.hpp:144
Json active_state() const override
Definition: driver_request.hpp:59
virtual boost::optional< double > steering_angle() const =0
boost::optional< double > steering_angle() const override
Definition: driver_request.hpp:79
void reset() override
Definition: component.hpp:187