|
@@ -2,6 +2,8 @@ package com.sw.patroleditor.controller;
|
|
|
|
|
|
import com.sw.patroleditor.common.ResultData;
|
|
import com.sw.patroleditor.common.ResultData;
|
|
import com.sw.patroleditor.component.rosBridge.RobotDataCallBack;
|
|
import com.sw.patroleditor.component.rosBridge.RobotDataCallBack;
|
|
|
|
+import com.sw.patroleditor.domain.model.FocusConfiguration;
|
|
|
|
+import com.sw.patroleditor.domain.model.FocusData;
|
|
import com.sw.patroleditor.domain.model.PTZData;
|
|
import com.sw.patroleditor.domain.model.PTZData;
|
|
import com.sw.patroleditor.domain.model.Position3D;
|
|
import com.sw.patroleditor.domain.model.Position3D;
|
|
import com.sw.patroleditor.service.HKService;
|
|
import com.sw.patroleditor.service.HKService;
|
|
@@ -30,6 +32,20 @@ public class PTZController {
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
+ @ApiOperation(value = "改变云台聚焦模式")
|
|
|
|
+ @PutMapping("/ptz/changeFocusMode")
|
|
|
|
+ public ResultData changeFocusMode(@RequestBody FocusConfiguration focusConfiguration) {
|
|
|
|
+ return hkService.changeFocusMode(focusConfiguration);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
|
|
+ @ApiOperation(value = "云台聚焦")
|
|
|
|
+ @PutMapping("/ptz/focus")
|
|
|
|
+ public ResultData focus(@RequestBody FocusData focusData) {
|
|
|
|
+ return hkService.focusChanged(focusData);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+
|
|
@ApiOperation(value = "3D定位")
|
|
@ApiOperation(value = "3D定位")
|
|
@PutMapping("/ptz/position3D")
|
|
@PutMapping("/ptz/position3D")
|
|
public ResultData position3D(@RequestBody Position3D position3D) {
|
|
public ResultData position3D(@RequestBody Position3D position3D) {
|