调试窗
增加点云颜色、大小配置功能
This commit is contained in:
@@ -634,6 +634,34 @@ class DebugSettingView @JvmOverloads constructor(
|
||||
CallerHDMapManager.setIsDrawPointCloud(isChecked)
|
||||
}
|
||||
|
||||
//设置点云大小
|
||||
btnPointCloudSize.setOnClickListener{
|
||||
val cloudSize = etPointCloudSize.text.toString()
|
||||
if(cloudSize.isEmpty()){
|
||||
ToastUtils.showShort("请输入正确的点云大小")
|
||||
}else{
|
||||
try {
|
||||
val cloudSizeFloat = cloudSize.toFloat()
|
||||
CallerHDMapManager.setPointCloudSize(cloudSizeFloat)
|
||||
}catch (e: Exception){
|
||||
ToastUtils.showShort("点云大小格式输入不正确")
|
||||
}
|
||||
}
|
||||
}
|
||||
//设置点云颜色
|
||||
btnPointCloudColor.setOnClickListener {
|
||||
val cloudColor = etPointCloudColor.text.toString()
|
||||
if(cloudColor.isEmpty()){
|
||||
ToastUtils.showShort("请输入正确的点云颜色")
|
||||
}else{
|
||||
try {
|
||||
CallerHDMapManager.setPointCloudColor(cloudColor)
|
||||
}catch (e: Exception){
|
||||
ToastUtils.showShort("点云大小颜色输入不正确")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// 模拟自动驾驶中
|
||||
tbChangeAutoPilotStatus.setOnCheckedChangeListener { _, isChecked ->
|
||||
CallerAutoPilotManager.setControlAutopilotCarAuto(isChecked)
|
||||
|
||||
@@ -1548,12 +1548,76 @@
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnPointCloudSize"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:layout_margin="2dp"
|
||||
android:text="设置点云大小"
|
||||
android:textSize="@dimen/dp_24"
|
||||
app:layout_constraintTop_toBottomOf="@id/tbDrawPointCloudData"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatEditText
|
||||
android:id="@+id/etPointCloudSize"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
android:layout_marginBottom="@dimen/dp_10"
|
||||
android:background="@drawable/debug_setting_edit_bg"
|
||||
android:gravity="center"
|
||||
android:hint="请输入点云大小"
|
||||
android:textColor="#1A1A1A"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintLeft_toRightOf="@id/btnPointCloudSize"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/btnPointCloudSize"
|
||||
app:layout_constraintBottom_toBottomOf="@id/btnPointCloudSize"
|
||||
/>
|
||||
|
||||
<Button
|
||||
android:id="@+id/btnPointCloudColor"
|
||||
android:layout_width="wrap_content"
|
||||
android:layout_height="wrap_content"
|
||||
android:gravity="center"
|
||||
android:padding="@dimen/dp_10"
|
||||
android:layout_margin="2dp"
|
||||
android:text="设置点云颜色"
|
||||
android:textSize="@dimen/dp_24"
|
||||
app:layout_constraintTop_toBottomOf="@id/btnPointCloudSize"
|
||||
app:layout_constraintLeft_toLeftOf="parent"
|
||||
/>
|
||||
|
||||
<androidx.appcompat.widget.AppCompatEditText
|
||||
android:id="@+id/etPointCloudColor"
|
||||
android:layout_width="0dp"
|
||||
android:layout_height="0dp"
|
||||
android:layout_marginStart="@dimen/dp_30"
|
||||
android:layout_marginTop="@dimen/dp_10"
|
||||
android:layout_marginEnd="@dimen/dp_20"
|
||||
android:layout_marginBottom="@dimen/dp_10"
|
||||
android:background="@drawable/debug_setting_edit_bg"
|
||||
android:gravity="center"
|
||||
android:hint="请输入点云颜色"
|
||||
android:textColor="#1A1A1A"
|
||||
android:textSize="14sp"
|
||||
app:layout_constraintLeft_toRightOf="@id/btnPointCloudColor"
|
||||
app:layout_constraintRight_toRightOf="parent"
|
||||
app:layout_constraintTop_toTopOf="@id/btnPointCloudColor"
|
||||
app:layout_constraintBottom_toBottomOf="@id/btnPointCloudColor"
|
||||
/>
|
||||
|
||||
<RadioGroup
|
||||
android:id="@+id/rgGpsProvider"
|
||||
android:layout_width="match_parent"
|
||||
android:layout_height="wrap_content"
|
||||
android:orientation="horizontal"
|
||||
app:layout_constraintTop_toBottomOf="@id/tbChangeAutoPilotStatus">
|
||||
app:layout_constraintTop_toBottomOf="@id/btnPointCloudColor">
|
||||
|
||||
<RadioButton
|
||||
android:id="@+id/rbGpsProviderAndroid"
|
||||
|
||||
Reference in New Issue
Block a user