commit for push

This commit is contained in:
CaiXiang
2025-11-17 09:13:16 +08:00
parent 240b45c8b0
commit b0c4d5c475
6 changed files with 661 additions and 1 deletions

View File

@@ -0,0 +1,13 @@
// Set up tracker
tracker_->setReferencePath(path);
// 修复: 从路径起点获取初始状态,确保完美匹配
const auto& path_points = path.getPathPoints();
AGVModel::State initial_state;
if (!path_points.empty()) {
const PathPoint& start = path_points[0];
initial_state = AGVModel::State(start.x, start.y, start.theta);
} else {
initial_state = AGVModel::State(0.0, 0.0, 0.0);
}
tracker_->setInitialState(initial_state);