|
@@ -789,6 +789,7 @@ Navigation::MpcResult Navigation::DoubleOutSpaceCorrectTheta() {
|
|
}
|
|
}
|
|
|
|
|
|
Navigation::MpcResult Navigation::RotateAfterOutExport() {
|
|
Navigation::MpcResult Navigation::RotateAfterOutExport() {
|
|
|
|
+ printf("RotateAfterOutExport...\n");
|
|
if (move_mode_ != eDouble)
|
|
if (move_mode_ != eDouble)
|
|
return eMpcSuccess;
|
|
return eMpcSuccess;
|
|
Pose2d init = timedPose_.Get();
|
|
Pose2d init = timedPose_.Get();
|
|
@@ -1213,7 +1214,7 @@ bool Navigation::execute_InOut_space(NavMessage::NewAction action) {
|
|
isInSpace_ = false;
|
|
isInSpace_ = false;
|
|
|
|
|
|
// 存车流程离开入口,掉头
|
|
// 存车流程离开入口,掉头
|
|
- if (GetRemainActionsCount() > 1) {
|
|
|
|
|
|
+ if (GetSequenceType() == eSequencePark) {
|
|
if (move_mode_ == eDouble && TargetIsExport(action.spacenode()) && GetSpaceId(action.spacenode()) != 1102) {
|
|
if (move_mode_ == eDouble && TargetIsExport(action.spacenode()) && GetSpaceId(action.spacenode()) != 1102) {
|
|
Pose2d current_pose = timedPose_.Get();
|
|
Pose2d current_pose = timedPose_.Get();
|
|
double current_theta = current_pose.theta();
|
|
double current_theta = current_pose.theta();
|
|
@@ -2472,4 +2473,13 @@ NavMessage::NewAction Navigation::GetLastAction() {
|
|
return newUnfinished_cations_.back();
|
|
return newUnfinished_cations_.back();
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+int Navigation::GetSequenceType() {
|
|
|
|
+ if (global_navCmd_.has_sequence()){
|
|
|
|
+ return eSequenceDefault;
|
|
|
|
+ }
|
|
|
|
+ else{
|
|
|
|
+ return global_navCmd_.sequence();
|
|
|
|
+ }
|
|
|
|
+}
|
|
|
|
+
|
|
|
|
|