diff --git a/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SweeperCurrentTaskInfoView.java b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SweeperCurrentTaskInfoView.java
new file mode 100644
index 0000000000..49716cdbf6
--- /dev/null
+++ b/OCH/mogo-och-sweeper/src/main/java/com/mogo/och/sweeper/view/SweeperCurrentTaskInfoView.java
@@ -0,0 +1,54 @@
+package com.mogo.och.sweeper.view;
+
+import android.content.Context;
+import android.util.AttributeSet;
+import android.view.LayoutInflater;
+import android.widget.ImageView;
+import android.widget.TextView;
+
+import com.mogo.och.sweeper.R;
+
+import androidx.annotation.NonNull;
+import androidx.annotation.Nullable;
+import androidx.constraintlayout.widget.ConstraintLayout;
+
+/**
+ * 清扫车当前任务信息展示
+ */
+public class SweeperCurrentTaskInfoView extends ConstraintLayout {
+ private TextView mTvTaskName;
+ private TextView mTvTaskTime;
+ private TextView mTvTaskState;
+ private ImageView mIvMore;
+ private SubTaskView mCurrentSubTask;
+ private SubTaskView mNextSubTask;
+ private SubTaskView mLastSubTask;
+
+ public SweeperCurrentTaskInfoView(@NonNull Context context) {
+ super(context);
+ }
+
+ public SweeperCurrentTaskInfoView(@NonNull Context context, @Nullable AttributeSet attrs) {
+ super(context, attrs);
+ initView(context);
+ }
+
+ public SweeperCurrentTaskInfoView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
+ super(context, attrs, defStyleAttr);
+ }
+
+ public SweeperCurrentTaskInfoView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr, int defStyleRes) {
+ super(context, attrs, defStyleAttr, defStyleRes);
+ }
+
+ private void initView(@NonNull Context context) {
+ LayoutInflater.from(context).inflate(R.layout.sweeper_current_task_info, this);
+ mTvTaskName=findViewById(R.id.tvTaskName);
+ mTvTaskTime=findViewById(R.id.tvTaskTime);
+ mTvTaskState=findViewById(R.id.tvTaskState);
+ mIvMore=findViewById(R.id.ivMore);
+ mCurrentSubTask=findViewById(R.id.currentSubTask);
+ mNextSubTask=findViewById(R.id.nextSubTask);
+ mLastSubTask=findViewById(R.id.lastSubTask);
+ }
+}
diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_info_line.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_info_line.xml
new file mode 100644
index 0000000000..540e1294c9
--- /dev/null
+++ b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_info_line.xml
@@ -0,0 +1,4 @@
+
+
+
+
\ No newline at end of file
diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_state_not_ready.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_state_not_ready.xml
new file mode 100644
index 0000000000..c808b231e8
--- /dev/null
+++ b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_state_not_ready.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_state_working.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_state_working.xml
new file mode 100644
index 0000000000..ad4e25124f
--- /dev/null
+++ b/OCH/mogo-och-sweeper/src/main/res/drawable/bg_shape_task_state_working.xml
@@ -0,0 +1,5 @@
+
+
+
+
+
\ No newline at end of file
diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/icon_more.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/icon_more.xml
new file mode 100644
index 0000000000..3d348cf41a
--- /dev/null
+++ b/OCH/mogo-och-sweeper/src/main/res/drawable/icon_more.xml
@@ -0,0 +1,9 @@
+
+
+
diff --git a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_line_btn.xml b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_ready.xml
similarity index 74%
rename from OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_line_btn.xml
rename to OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_ready.xml
index 8b066b0ce8..0a23238c63 100644
--- a/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_switch_line_btn.xml
+++ b/OCH/mogo-och-sweeper/src/main/res/drawable/sweeper_ready.xml
@@ -3,8 +3,8 @@
-
-
+
diff --git a/OCH/mogo-och-sweeper/src/main/res/layout/fragment_och_sweeper.xml b/OCH/mogo-och-sweeper/src/main/res/layout/fragment_och_sweeper.xml
index 851bfa744d..a6fa76d9de 100644
--- a/OCH/mogo-och-sweeper/src/main/res/layout/fragment_och_sweeper.xml
+++ b/OCH/mogo-och-sweeper/src/main/res/layout/fragment_och_sweeper.xml
@@ -133,7 +133,7 @@
android:layout_width="wrap_content"
android:layout_height="wrap_content"
android:layout_marginTop="14dp"
- android:src="@drawable/sweeper_icon_arrived_station"
+ android:src="@drawable/sweeper_icon_current_subtask"
app:layout_constraintBottom_toBottomOf="@+id/module_och_sweeper_current_station"
app:layout_constraintLeft_toLeftOf="@+id/module_och_sweeper_line_name"
app:layout_constraintTop_toTopOf="@+id/module_och_sweeper_current_station" />
@@ -164,7 +164,7 @@
android:layout_width="@dimen/sweeper_switch_line_btn_width_1"
android:layout_height="@dimen/sweeper_switch_line_btn_height_1"
android:layout_marginLeft="@dimen/dp_28"
- android:background="@drawable/sweeper_switch_line_btn"
+ android:background="@drawable/sweeper_ready"
android:gravity="center"
android:text="@string/sweeper_switch_line_btn"
android:textColor="@android:color/white"
diff --git a/OCH/mogo-och-sweeper/src/main/res/layout/item_och_sweeper_station.xml b/OCH/mogo-och-sweeper/src/main/res/layout/item_och_sweeper_station.xml
index 03d3e20c4b..088890a1d2 100644
--- a/OCH/mogo-och-sweeper/src/main/res/layout/item_och_sweeper_station.xml
+++ b/OCH/mogo-och-sweeper/src/main/res/layout/item_och_sweeper_station.xml
@@ -26,7 +26,7 @@
android:layout_width="20dp"
android:layout_height="20dp"
android:scaleType="center"
- android:src="@drawable/sweeper_icon_arrived_station"
+ android:src="@drawable/sweeper_icon_current_subtask"
app:layout_constraintBottom_toBottomOf="@id/module_mogo_och_sweeper_station_name"
app:layout_constraintLeft_toLeftOf="parent"
app:layout_constraintVertical_bias="0.4"
diff --git a/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_base_fragment.xml b/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_base_fragment.xml
index 5e7db992a8..6b69b7ec87 100644
--- a/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_base_fragment.xml
+++ b/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_base_fragment.xml
@@ -5,201 +5,73 @@
android:layout_width="match_parent"
android:layout_height="match_parent"
android:layout_marginTop="@dimen/dp_72">
-
-
-
-
-
-
-
-
-
-
-
-
-
+
+
-
-
-
-
-
-
+ app:layout_constraintBottom_toTopOf="@+id/sweeper_switch_model_layout"
+ android:layout_marginStart="@dimen/dp_41"
+ android:layout_marginTop="@dimen/dp_36"
+ android:layout_marginBottom="@dimen/dp_30"
+ />
-
+ app:layout_constraintBottom_toTopOf="@+id/sweeper_switch_model_layout"
+ android:visibility="gone"
+ android:layout_marginTop="@dimen/dp_36"/>
-
-
-
-
-
-
-
-
+ app:layout_constraintLeft_toLeftOf="parent">
+
+
+
+
+
+ android:src="@drawable/bad_case_selector" />
@@ -255,26 +129,6 @@
android:layout_gravity="center"
android:src="@drawable/ai_collect_selector" />
-
-
-
-
-
-
-
\ No newline at end of file
diff --git a/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_current_task_info.xml b/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_current_task_info.xml
new file mode 100644
index 0000000000..c9dd35dfd2
--- /dev/null
+++ b/OCH/mogo-och-sweeper/src/main/res/layout/sweeper_current_task_info.xml
@@ -0,0 +1,113 @@
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/OCH/mogo-och-sweeper/src/main/res/values/dimens.xml b/OCH/mogo-och-sweeper/src/main/res/values/dimens.xml
index 5a73ebcb09..8cc4e2b53a 100644
--- a/OCH/mogo-och-sweeper/src/main/res/values/dimens.xml
+++ b/OCH/mogo-och-sweeper/src/main/res/values/dimens.xml
@@ -14,7 +14,7 @@
32dp
20dp
26dp
- 20dp
+ 42dp
15dp
diff --git a/OCH/mogo-och-sweeper/src/main/res/values/strings.xml b/OCH/mogo-och-sweeper/src/main/res/values/strings.xml
index 95a71366f9..dde461448c 100644
--- a/OCH/mogo-och-sweeper/src/main/res/values/strings.xml
+++ b/OCH/mogo-och-sweeper/src/main/res/values/strings.xml
@@ -10,7 +10,7 @@
起点:
终点:
确认
- 切换路线
+ 准备就绪
自动驾驶中,不可切换路线
当前行程未完成,不可切换路线
当前车辆无路线\n请联系运营人员绑定
diff --git a/app_mogo_magic_ring/src/main/java/com/zhidao/adas/magic/ui/MainActivity.java b/app_mogo_magic_ring/src/main/java/com/zhidao/adas/magic/ui/MainActivity.java
index 2791e7f8c6..b53ff5205b 100644
--- a/app_mogo_magic_ring/src/main/java/com/zhidao/adas/magic/ui/MainActivity.java
+++ b/app_mogo_magic_ring/src/main/java/com/zhidao/adas/magic/ui/MainActivity.java
@@ -69,6 +69,7 @@ import function_state_management.FunctionStates;
import mogo.telematics.pad.MessagePad;
import mogo_msg.MogoReportMsg;
import perception.TrafficLightOuterClass;
+import planning.RoboSweeperTaskIndexOuterClass;
import prediction.Prediction;
import record_cache.RecordPanelOuterClass;
import system_master.SystemStatusInfo;
@@ -542,6 +543,11 @@ public class MainActivity extends BaseActivity implements OnAdasListener, OnAdas
}
+ @Override
+ public void onSweeperTaskIndexData(MessagePad.Header header, RoboSweeperTaskIndexOuterClass.RoboSweeperTaskIndex roboSweeperTaskIndex) {
+
+ }
+
private void initAdas() {
CupidLogUtils.e(TAG, "--->初始化");