### Added
- Rotation of BicycleCar around the point.
+### Changed
+- When set up BicycleCar heading, set the interval to `[-pi, +pi]`.
+
### Fixed
- Minimum turning radius used as curb-to-curb.
\param x Horizontal coordinate of rear axle center.
\param y Vertical coordinate of rear axle center.
-\param h Heading of the car.
+\param h Heading of the car in the interval [-pi,+pi] radians.
\param mtr Minimum turning radius.
\param wb Wheelbase.
\param w The width of the car.
void y(double y) { this->y_ = y; }
double h() const { return this->h_; }
- void h(double h) { this->h_ = h; }
+ void h(double h)
+ {
+ while (h < -M_PI)
+ h += 2 * M_PI;
+ while (h > +M_PI)
+ h -= 2 * M_PI;
+ this->h_ = h;
+ }
double ctc() const { return this->ctc_; }
void ctc(double ctc) { this->ctc_ = ctc; }