@@ -45,35 +45,35 @@ class LatLongActuator : public Component {
45
45
* Set the vehicle target acceleration in m/s^2.
46
46
* The time that the vehicle requires to reach this acceleration is undefined.
47
47
*/
48
- void set_acceleration (double a) {
48
+ virtual void set_acceleration (double a) {
49
49
target_acceleration_ = a;
50
50
level_.set_long ();
51
51
}
52
52
53
- boost::optional<double > acceleration () const { return target_acceleration_; }
53
+ virtual boost::optional<double > acceleration () { return target_acceleration_; }
54
54
55
55
/* *
56
56
* Return true if set_acceleration was called for the current step.
57
57
*/
58
- bool is_acceleration () const { return static_cast <bool >(target_acceleration_); }
58
+ virtual bool is_acceleration () const { return static_cast <bool >(target_acceleration_); }
59
59
60
60
/* *
61
61
* Set the target steering angle of the wheels in rad.
62
62
* The time that the vehicle requires to reach this steering angle is undefined.
63
63
* In most cases, the front left wheel defines the angle, and the time to target
64
64
* steering angle is zero.
65
65
*/
66
- void set_steering_angle (double a) {
66
+ virtual void set_steering_angle (double a) {
67
67
target_steering_angle_ = a;
68
68
level_.set_lat ();
69
69
}
70
70
71
- boost::optional<double > steering_angle () const { return target_steering_angle_; }
71
+ virtual boost::optional<double > steering_angle () { return target_steering_angle_; }
72
72
73
73
/* *
74
74
* Return true if set_target_steering_angle was called for the current step.
75
75
*/
76
- bool is_steering_angle () const { return static_cast <bool >(target_steering_angle_); }
76
+ virtual bool is_steering_angle () const { return static_cast <bool >(target_steering_angle_); }
77
77
78
78
/* *
79
79
* Return a single enum summarizing the current actuation level of control.
0 commit comments