修复柯蒂斯控制器依赖引入bug

This commit is contained in:
CaiXiang
2025-11-17 09:00:30 +08:00
parent c34b5dc853
commit 63954ab945
3 changed files with 28 additions and 27 deletions

View File

@@ -79,10 +79,16 @@ public:
double getMaxVelocity() const { return max_velocity_; }
double getMaxSteeringAngle() const { return max_steering_angle_; }
// 状态管理
void setState(const State& state) { state_ = state; }
const State& getState() const { return state_; }
void update(const Control& control, double dt) { state_ = update(state_, control, dt); }
private:
double wheelbase_; // 轮距 (m)
double max_velocity_; // 最大速度 (m/s)
double max_steering_angle_; // 最大转向角 (rad)
State state_; // 当前状态
};
#endif // AGV_MODEL_H