33 using Component::Component;
73 using DriverRequest::DriverRequest;
77 boost::optional<double>
acceleration()
const override {
return acceleration_; }
80 boost::optional<double>
steering_angle()
const override {
return steering_angle_; }
85 acceleration_.reset();
86 steering_angle_.reset();
92 acceleration_.reset();
93 steering_angle_.reset();
97 boost::optional<double> acceleration_{0.0};
98 boost::optional<double> steering_angle_{0.0};
Definition: component.hpp:143
Duration process(const Sync &sync) override
Definition: component.hpp:181
void reset() override
Definition: component.hpp:186
Definition: driver_request.hpp:31
virtual bool has_steering_angle() const =0
virtual boost::optional< double > acceleration() const =0
virtual bool has_acceleration() const =0
fable::Json active_state() const override
Definition: driver_request.hpp:60
virtual boost::optional< double > steering_angle() const =0
Definition: driver_request.hpp:71
bool has_steering_angle() const override
Definition: driver_request.hpp:81
bool has_acceleration() const override
Definition: driver_request.hpp:78
Duration process(const Sync &sync) override
Definition: driver_request.hpp:83
boost::optional< double > steering_angle() const override
Definition: driver_request.hpp:80
boost::optional< double > acceleration() const override
Definition: driver_request.hpp:77
void reset() override
Definition: driver_request.hpp:90
std::chrono::nanoseconds Duration
Definition: cloe_fwd.hpp:36
nlohmann::json Json
Definition: fable_fwd.hpp:35