|
38 | 38 | ; (execute '(stopCompareTask "/tmp/SLAMCompare1/")) |
39 | 39 |
|
40 | 40 |
|
| 41 | + |
41 | 42 | (realize-tcb (startCompareTask) |
42 | 43 | (action ( |
43 | 44 | (format t "===== startCompareTask~%"))) |
|
50 | 51 | (rgbdRS.activateCameraPush) |
51 | 52 | (laserFromRGBDGen.activateLaserGenaration) |
52 | 53 |
|
| 54 | + (visLaser.startVisualizationOf 'map1 "ComponentGMapping" "newestMapPushServer") |
| 55 | + (visRS.startVisualizationOf 'map1 "ComponentGMapping_rs" "newestMapPushServer") |
| 56 | + |
53 | 57 | ;;start mapping |
54 | 58 | (SLAMLaser.tcb-start-mapping 0 0 0) |
55 | 59 | (SLAMRGBD.tcb-start-mapping 0 0 0)))) |
|
63 | 67 | (SLAMLaser.tcb-stop-mapping "laserMap" ?mapDir) |
64 | 68 | (SLAMRGBD.tcb-stop-mapping "rgbdMap" ?mapDir) |
65 | 69 |
|
| 70 | + (visLaser.stopVisualizationOf 'map1) |
| 71 | + (visRS.stopVisualizationOf 'map1) |
| 72 | + |
66 | 73 | ;;stop realsense and laser generation |
67 | 74 | (rgbdRS.deactivateCamera) |
68 | 75 | (laserFromRGBDGen.dectivateLaserGenaration)))) |
|
76 | 83 | (SLAMLaser.tcb-abort-mapping) |
77 | 84 | (SLAMRGBD.tcb-abort-mapping) |
78 | 85 |
|
| 86 | + (visLaser.stopVisualizationOf 'map1) |
| 87 | + (visRS.stopVisualizationOf 'map1) |
| 88 | + |
| 89 | + ;;stop realsense and laser generation |
| 90 | + (rgbdRS.deactivateCamera) |
| 91 | + (laserFromRGBDGen.dectivateLaserGenaration)))) |
| 92 | + |
| 93 | + |
| 94 | +(realize-tcb (showSensorData) |
| 95 | + (action ( |
| 96 | + (format t "===== showSensor~%"))) |
| 97 | + (plan ( |
| 98 | + ;;activate realsense and laser generation |
| 99 | + (rgbdRS.activateCameraPush) |
| 100 | + (laserFromRGBDGen.activateLaserGenaration) |
| 101 | + |
| 102 | + ;;activate the visualization |
| 103 | + (visLaser.startVisualizationOf 'laser1 "ComponentRobotinoLaserServer" "pushNewestServer") |
| 104 | + (visRS.startVisualizationOf 'laser1 "ComponentLaserFromRGBDServer" "laserPushNewestServer")))) |
| 105 | + |
| 106 | + |
| 107 | +(realize-tcb (stopSensorData) |
| 108 | + (action ( |
| 109 | + (format t "===== stopSensorData~%"))) |
| 110 | + (plan ( |
| 111 | + |
| 112 | + ;;stop the visualization |
| 113 | + (visLaser.stopVisualizationOf 'laser1) |
| 114 | + (visRS.stopVisualizationOf 'laser1) |
| 115 | + |
79 | 116 | ;;stop realsense and laser generation |
80 | 117 | (rgbdRS.deactivateCamera) |
81 | 118 | (laserFromRGBDGen.dectivateLaserGenaration)))) |
|
98 | 135 | (format t " ---------------------------------------------------- ~%") |
99 | 136 | (format t " 3 - Abort Mapping ~%") |
100 | 137 | (format t " ---------------------------------------------------- ~%") |
| 138 | + (format t " 4 - Show Sensor Data ~%") |
| 139 | + (format t " 5 - Stop Show Sensor Data ~%") |
| 140 | + (format t " ---------------------------------------------------- ~%") |
| 141 | + |
101 | 142 | (format t "99 - quit menu ~%") |
102 | 143 | (format t " 0 - exit ~%") |
103 | 144 | (setf nmbr (parse-integer (read-line nil))) |
|
134 | 175 | (execute `(stopCompareTask ,mappath)))) |
135 | 176 | ((equal nmbr 3) |
136 | 177 | (execute '(abortCompareTask))) |
| 178 | + ((equal nmbr 4) |
| 179 | + (execute '(showSensorData))) |
| 180 | + ((equal nmbr 5) |
| 181 | + (execute '(stopSensorData))) |
137 | 182 | ((equal nmbr 99) |
138 | 183 | (format t "type (menu) to come back to menu ~%") |
139 | 184 | (return)) |
|
0 commit comments