修复柯蒂斯控制器依赖引入bug
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user