Extension SDK for PanelsSweeper SDKLaser Robot Vacuum SDKDemo catalog description of laser sweeping robot

Demo catalog description of laser sweeping robot

Last Updated on : 2021-12-07 03:11:43download

Description

In order to facilitate the development of the sweeper panel, we provide a complete set of demo of the laser sweeping robot panel. Developers can refer to this demo for development or secondary development.

Github

Demo link

Directory

├── api
│   ├── index.tsx       // Some cloud interfaces that need to be called in the template
│   └── laserUIApi.ts  // Map communication interface for app interaction
├── components  //   Basic business UI components
│   ├── buttonComponent.tsx 
│   ├── circleLoadingView.tsx
│   ├── home
│   │   ├── bottomItemView.tsx     
│   │   ├── controllerBar.tsx
│   │   ├── homeBottomView.tsx
│   │   ├── homeMapContral.tsx
│   │   ├── homeMapView.tsx
│   │   ├── homeTopView.tsx
│   │   └── mapView
│   │       ├── components
│   │       │   └── mapLoading.tsx  // UI components in map loading
│   │       ├── config
│   │       │   ├── autoTask
│   │       │   │   ├── historyMap.ts   // Get historical map
│   │       │   │   ├── index.ts
│   │       │   │   ├── multiFloor.ts    // Get a multi-floor map
│   │       │   │   ├── realTimeArea.ts   // Get real-time area information
│   │       │   │   ├── realTimeFirstMap.ts  // Get the first map
│   │       │   │   ├── realTimeFirstPath.ts   // Get the first cleaning path
│   │       │   │   ├── realTimeFullPath.ts  // Get the full cleaning path
│   │       │   │   ├── realTimeMap.ts  // Get a real-time map
│   │       │   │   ├── realTimePath.ts  // Get real-time cleaning path
│   │       │   │   ├── realTimePlanPath.ts  // Get navigation path
│   │       │   │   ├── requestMap.ts   // Poll real-time map
│   │       │   │   ├── requestPath.ts  // Poll real-time path
│   │       │   │   └── updateAuthentication.ts   //  Authentication
│   │       │   ├── elementConfigs.ts
│   │       │   ├── elementEvents   // Define some function communication to interact with App
│   │       │   │   ├── index.ts
│   │       │   │   ├── onClickRoom.ts
│   │       │   │   ├── onClickSplitArea.ts
│   │       │   │   ├── onLaserMapPoints.ts
│   │       │   │   ├── onLongPressInAreaView.ts
│   │       │   │   └── onMapId.ts
│   │       │   ├── elementPropsSchema   // The data sent to the App is integrated and processed
│   │       │   │   ├── areaInfoList
│   │       │   │   │   └── index.ts
│   │       │   │   ├── factorInfo
│   │       │   │   │   └── index.ts
│   │       │   │   ├── hasTypeMap
│   │       │   │   │   └── index.ts
│   │       │   │   ├── index.ts
│   │       │   │   ├── isRotate.ts
│   │       │   │   ├── mapData
│   │       │   │   │   ├── index.ts
│   │       │   │   │   └── roomInfoUtils.ts
│   │       │   │   ├── minAreaWidth.ts
│   │       │   │   ├── pathData
│   │       │   │   │   └── index.ts
│   │       │   │   ├── pathWidth.ts
│   │       │   │   ├── pileIcon.ts
│   │       │   │   ├── pilePosition
│   │       │   │   │   └── index.ts
│   │       │   │   ├── planPathColor.ts
│   │       │   │   ├── planPathData
│   │       │   │   │   └── index.ts
│   │       │   │   └── splitColor.ts
│   │       │   ├── index.ts
│   │       │   ├── interface.ts
│   │       │   └── store.ts
│   │       ├── index.tsx
│   │       └── resourceManager  // Robot special tools for processing data-related acquisition and communication
│   │           ├── api
│   │           │   ├── dpAPI.ts
│   │           │   ├── index.ts
│   │           │   ├── nativeApi.ts
│   │           │   ├── ossApi.ts
│   │           │   └── ossEvent.ts
│   │           ├── config.ts
│   │           ├── elements.ts
│   │           ├── events.ts
│   │           ├── index.ts
│   │           ├── interface.ts
│   │           ├── manager.ts
│   │           ├── store.ts
│   │           ├── task.ts
│   │           ├── utils
│   │           │   └── tool.ts
│   │           └── watch.ts
│   ├── index.tsx
│   ├── laserSweepHistory   // Sweep record protocol for parsing and display
│   │   ├── index.tsx
│   │   ├── recordDataCollection
│   │   │   ├── index.ts
│   │   │   ├── laser
│   │   │   │   ├── index.ts
│   │   │   │   ├── laserLeidong.ts
│   │   │   │   └── ossRecordCollection.ts
│   │   │   ├── readme.md
│   │   │   └── recordInstance.ts
│   │   ├── records
│   │   │   ├── components
│   │   │   │   ├── index.tsx
│   │   │   │   └── itemCell.tsx
│   │   │   ├── hoc
│   │   │   │   └── hocSwipeoutCell.tsx
│   │   │   ├── index.ts
│   │   │   ├── portal.ts
│   │   │   └── recordsScene.tsx
│   ├── listModalView.tsx
│   ├── manualModal.tsx
│   ├── map.tsx
│   ├── mapFuncComponent.tsx
│   ├── multiFaultDetail.tsx
│   ├── rctLaserMap.tsx
│   ├── renameModal.tsx
│   ├── rowComponent.tsx
│   ├── settingsSectionList.tsx
│   ├── sweepManualView
│   │   ├── index.tsx
│   ├── toastModal
│   │   ├── index.tsx
│   │   └── simpleToast.tsx
│   └── voiceRowComponent.tsx
├── composeLayout.tsx
├── config
│   ├── default
│   │   ├── dpCodes.tsx   // dp
│   │   ├── index.tsx
│   │   ├── panelConfig.json //  panel config
│   │   ├── theme.ts  // theme config
│   │   └── timerFunConfig.ts // timer config
│   ├── index.tsx
│   ├── interface.ts
│   └── router.ts
├── i18n     // language
│   ├── index.ts
│   └── strings.ts
├── main.tsx
├── pages    //  UI Module
│   ├── consumablesPage.tsx 
│   ├── customEditPage.tsx
│   ├── deviceInfoPage.tsx
│   ├── dustCollectionPage.tsx
│   ├── editMapPage.tsx
│   ├── homePage.tsx
│   ├── mapHistoryPage.tsx
│   ├── mapManagePage.tsx
│   ├── roomEditPage.tsx
│   ├── settingsPage.tsx
│   └── volumePage.tsx
├── protocol   //  Protocol analysis
│   ├── area   // Regional information analysis
│   │   └── index.ts
│   ├── constant  // Limiting tool for protocol analysis
│   │   └── index.ts
│   ├── index.ts
│   ├── map   // Map protocol analysis
│   │   └── index.ts
│   ├── path   // Path data analysis
│   │   └── index.ts
│   └── utils     // Some public method. Also refer to robot in tuya-panel-sdk
│       ├── binary  // Data conversion tool
│       │   └── index.ts
│       ├── customErrorUtil  // Custom error handling tools
│       │   └── index.ts
│       ├── functionUtil    // Robot function tool
│       │   ├── index.ts
│       │   └── readme.md
│       ├── index.ts
│       ├── loggerUtil  // Log tool
│       │   └── index.ts
│       ├── lz4Util    // Map decompression tool
│       │   ├── binding.ts
│       │   └── index.ts
│       ├── pressCoordinateUtil  // Coordinate conversion tool
│       │   ├── circleIntersectRect.ts
│       │   ├── index.ts
│       │   └── readme.md
│       ├── robotUtil  // Robot function 
│       │   └── index.ts
│       ├── rxUtil    // RxJS tool
│       │   └── index.ts
│       └── stringsUtil  // String conversion tool
│           └── index.ts
├── store    //  Some global status data
│   ├── customConfig.ts
│   ├── devInfo.ts
│   ├── dpState.ts
│   ├── index.ts
│   ├── mapData.ts
│   ├── panelConfig.ts
│   └── theme.tsx
└── utils  // Tools related to the logic of the sweeping robot
    ├── index.tsx
    ├── mapStateUtils.ts
    └── robotStatus.ts