pubo-web 1.0.4-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/pubo-web.js +13 -0
- package/es/file/download.d.ts +1 -0
- package/es/file/download.js +14 -0
- package/es/file/parser.d.ts +3 -0
- package/es/file/parser.js +35 -0
- package/es/index.d.ts +7 -0
- package/es/index.js +7 -0
- package/es/load-script/index.d.ts +1 -0
- package/es/load-script/index.js +88 -0
- package/es/ros/factory/configure.d.ts +14 -0
- package/es/ros/factory/configure.js +230 -0
- package/es/ros/factory/index.d.ts +32 -0
- package/es/ros/factory/index.js +116 -0
- package/es/ros/factory/super.d.ts +11 -0
- package/es/ros/factory/super.js +43 -0
- package/es/ros/index.d.ts +7 -0
- package/es/ros/index.js +10 -0
- package/es/ros/ros3d/inject.d.ts +6 -0
- package/es/ros/ros3d/inject.js +39 -0
- package/es/ros/ros3d/utils.d.ts +11 -0
- package/es/ros/ros3d/utils.js +249 -0
- package/es/ros/ros3d/viewer.d.ts +19 -0
- package/es/ros/ros3d/viewer.js +244 -0
- package/es/storage/index.d.ts +16 -0
- package/es/storage/index.js +65 -0
- package/lib/file/download.d.ts +1 -0
- package/lib/file/download.js +21 -0
- package/lib/file/parser.d.ts +3 -0
- package/lib/file/parser.js +44 -0
- package/lib/index.d.ts +7 -0
- package/lib/index.js +72 -0
- package/lib/load-script/index.d.ts +1 -0
- package/lib/load-script/index.js +95 -0
- package/lib/ros/factory/configure.d.ts +14 -0
- package/lib/ros/factory/configure.js +243 -0
- package/lib/ros/factory/index.d.ts +32 -0
- package/lib/ros/factory/index.js +130 -0
- package/lib/ros/factory/super.d.ts +11 -0
- package/lib/ros/factory/super.js +50 -0
- package/lib/ros/index.d.ts +7 -0
- package/lib/ros/index.js +19 -0
- package/lib/ros/ros3d/inject.d.ts +6 -0
- package/lib/ros/ros3d/inject.js +46 -0
- package/lib/ros/ros3d/utils.d.ts +11 -0
- package/lib/ros/ros3d/utils.js +272 -0
- package/lib/ros/ros3d/viewer.d.ts +19 -0
- package/lib/ros/ros3d/viewer.js +259 -0
- package/lib/storage/index.d.ts +16 -0
- package/lib/storage/index.js +72 -0
- package/package.json +26 -0
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
import ROSLIB from 'roslib';
|
|
18
|
+
import { superFactory } from './super';
|
|
19
|
+
|
|
20
|
+
var RosUtils =
|
|
21
|
+
/** @class */
|
|
22
|
+
function () {
|
|
23
|
+
function RosUtils(configure) {
|
|
24
|
+
var _this = this;
|
|
25
|
+
|
|
26
|
+
this.configure = null;
|
|
27
|
+
|
|
28
|
+
this.publishService = function (_a) {
|
|
29
|
+
var name = _a.name,
|
|
30
|
+
serviceType = _a.serviceType,
|
|
31
|
+
payload = _a.payload;
|
|
32
|
+
return new Promise(function (resolve, reject) {
|
|
33
|
+
var service = new ROSLIB.Service({
|
|
34
|
+
ros: _this.configure.ros,
|
|
35
|
+
name: name,
|
|
36
|
+
serviceType: serviceType
|
|
37
|
+
});
|
|
38
|
+
var request = new ROSLIB.ServiceRequest(payload);
|
|
39
|
+
service.callService(request, resolve, reject);
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
this.publishAction = function (_a) {
|
|
44
|
+
var serverName = _a.serverName,
|
|
45
|
+
actionName = _a.actionName,
|
|
46
|
+
goalMessage = _a.goalMessage;
|
|
47
|
+
return new Promise(function (resolve, reject) {
|
|
48
|
+
var actionClient = new ROSLIB.ActionClient({
|
|
49
|
+
ros: _this.configure.ros,
|
|
50
|
+
serverName: serverName,
|
|
51
|
+
actionName: actionName,
|
|
52
|
+
timeout: 0
|
|
53
|
+
});
|
|
54
|
+
var goal = new ROSLIB.Goal({
|
|
55
|
+
actionClient: actionClient,
|
|
56
|
+
goalMessage: goalMessage
|
|
57
|
+
});
|
|
58
|
+
goal.on('result', function (result) {
|
|
59
|
+
return resolve(result);
|
|
60
|
+
});
|
|
61
|
+
goal.on('error', function (err) {
|
|
62
|
+
return reject(err);
|
|
63
|
+
});
|
|
64
|
+
goal.send();
|
|
65
|
+
});
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
this.rosTopic = function (props) {
|
|
69
|
+
var topic = new ROSLIB.Topic(__assign({
|
|
70
|
+
ros: _this.configure.ros
|
|
71
|
+
}, props));
|
|
72
|
+
|
|
73
|
+
topic.publishMessage = function (payload) {
|
|
74
|
+
if (typeof topic.publish === 'function') {
|
|
75
|
+
topic.publish(new ROSLIB.Message(payload));
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return topic;
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
this.createRosService = function (services) {
|
|
83
|
+
return superFactory(function (options) {
|
|
84
|
+
return function (payload) {
|
|
85
|
+
return _this.publishService(__assign(__assign({}, options), {
|
|
86
|
+
payload: payload
|
|
87
|
+
}));
|
|
88
|
+
};
|
|
89
|
+
})(services);
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
this.createRosAction = function (actions) {
|
|
93
|
+
return superFactory(function (options) {
|
|
94
|
+
return function (goalMessage) {
|
|
95
|
+
return _this.publishAction(__assign(__assign({}, options), {
|
|
96
|
+
goalMessage: goalMessage
|
|
97
|
+
}));
|
|
98
|
+
};
|
|
99
|
+
})(actions);
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
this.createRosTopic = function (topic) {
|
|
103
|
+
return superFactory(function (options) {
|
|
104
|
+
return function () {
|
|
105
|
+
return _this.rosTopic(options);
|
|
106
|
+
};
|
|
107
|
+
})(topic);
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
this.configure = configure;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
return RosUtils;
|
|
114
|
+
}();
|
|
115
|
+
|
|
116
|
+
export { RosUtils };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
declare type OptionsObject<T, C> = {
|
|
2
|
+
[key in keyof T]: C;
|
|
3
|
+
};
|
|
4
|
+
declare type ProductsObject<T, F> = {
|
|
5
|
+
[key in keyof T]: F;
|
|
6
|
+
};
|
|
7
|
+
declare type Factory<C> = (config: C) => any;
|
|
8
|
+
export declare type CreateFactory<C, F> = <T>(apis: OptionsObject<T, C>) => ProductsObject<T, F>;
|
|
9
|
+
export declare type SuperFactory = <C, F>(factory: Factory<C>) => CreateFactory<C, F>;
|
|
10
|
+
export declare const superFactory: SuperFactory;
|
|
11
|
+
export {};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
var __values = this && this.__values || function (o) {
|
|
2
|
+
var s = typeof Symbol === "function" && Symbol.iterator,
|
|
3
|
+
m = s && o[s],
|
|
4
|
+
i = 0;
|
|
5
|
+
if (m) return m.call(o);
|
|
6
|
+
if (o && typeof o.length === "number") return {
|
|
7
|
+
next: function next() {
|
|
8
|
+
if (o && i >= o.length) o = void 0;
|
|
9
|
+
return {
|
|
10
|
+
value: o && o[i++],
|
|
11
|
+
done: !o
|
|
12
|
+
};
|
|
13
|
+
}
|
|
14
|
+
};
|
|
15
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
export var superFactory = function superFactory(factory) {
|
|
19
|
+
return function (options) {
|
|
20
|
+
var e_1, _a;
|
|
21
|
+
|
|
22
|
+
var product = {};
|
|
23
|
+
|
|
24
|
+
try {
|
|
25
|
+
for (var _b = __values(Object.keys(options)), _c = _b.next(); !_c.done; _c = _b.next()) {
|
|
26
|
+
var key = _c.value;
|
|
27
|
+
product[key] = factory(options[key]);
|
|
28
|
+
}
|
|
29
|
+
} catch (e_1_1) {
|
|
30
|
+
e_1 = {
|
|
31
|
+
error: e_1_1
|
|
32
|
+
};
|
|
33
|
+
} finally {
|
|
34
|
+
try {
|
|
35
|
+
if (_c && !_c.done && (_a = _b["return"])) _a.call(_b);
|
|
36
|
+
} finally {
|
|
37
|
+
if (e_1) throw e_1.error;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
return product;
|
|
42
|
+
};
|
|
43
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { RosUtils } from './factory';
|
|
2
|
+
import type { RosConfigure } from './factory/configure';
|
|
3
|
+
import { RosViewer } from './ros3d/viewer';
|
|
4
|
+
export declare const createConfigureRos: (rosConfigure: RosConfigure) => {
|
|
5
|
+
rosUtils: RosUtils;
|
|
6
|
+
createRosViewer(): RosViewer;
|
|
7
|
+
};
|
package/es/ros/index.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RosUtils } from './factory';
|
|
2
|
+
import { RosViewer } from './ros3d/viewer';
|
|
3
|
+
export var createConfigureRos = function createConfigureRos(rosConfigure) {
|
|
4
|
+
return {
|
|
5
|
+
rosUtils: new RosUtils(rosConfigure),
|
|
6
|
+
createRosViewer: function createRosViewer() {
|
|
7
|
+
return new RosViewer(rosConfigure);
|
|
8
|
+
}
|
|
9
|
+
};
|
|
10
|
+
};
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var InjectUtil =
|
|
18
|
+
/** @class */
|
|
19
|
+
function () {
|
|
20
|
+
function InjectUtil() {
|
|
21
|
+
this.state = {};
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
InjectUtil.prototype.inject = function (obj, options) {
|
|
25
|
+
return new obj(__assign(__assign({}, this.state), options));
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
InjectUtil.prototype.install = function (key, value) {
|
|
29
|
+
this.state[key] = value;
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
InjectUtil.prototype.remove = function (key) {
|
|
33
|
+
delete this.state[key];
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
return InjectUtil;
|
|
37
|
+
}();
|
|
38
|
+
|
|
39
|
+
export { InjectUtil };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare function getRainbowColor(pct: number): any;
|
|
2
|
+
export declare function colormap(x: number): any;
|
|
3
|
+
export declare function loadLib(url: string): Promise<any>;
|
|
4
|
+
export declare const basePointCloudOptions: {
|
|
5
|
+
colorsrc: string;
|
|
6
|
+
material: {
|
|
7
|
+
size: number;
|
|
8
|
+
};
|
|
9
|
+
max_pts: number;
|
|
10
|
+
colormap: typeof colormap;
|
|
11
|
+
};
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
var __assign = this && this.__assign || function () {
|
|
2
|
+
__assign = Object.assign || function (t) {
|
|
3
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
+
s = arguments[i];
|
|
5
|
+
|
|
6
|
+
for (var p in s) {
|
|
7
|
+
if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
return __assign.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
var __awaiter = this && this.__awaiter || function (thisArg, _arguments, P, generator) {
|
|
18
|
+
function adopt(value) {
|
|
19
|
+
return value instanceof P ? value : new P(function (resolve) {
|
|
20
|
+
resolve(value);
|
|
21
|
+
});
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
25
|
+
function fulfilled(value) {
|
|
26
|
+
try {
|
|
27
|
+
step(generator.next(value));
|
|
28
|
+
} catch (e) {
|
|
29
|
+
reject(e);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
function rejected(value) {
|
|
34
|
+
try {
|
|
35
|
+
step(generator["throw"](value));
|
|
36
|
+
} catch (e) {
|
|
37
|
+
reject(e);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
function step(result) {
|
|
42
|
+
result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
46
|
+
});
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
var __generator = this && this.__generator || function (thisArg, body) {
|
|
50
|
+
var _ = {
|
|
51
|
+
label: 0,
|
|
52
|
+
sent: function sent() {
|
|
53
|
+
if (t[0] & 1) throw t[1];
|
|
54
|
+
return t[1];
|
|
55
|
+
},
|
|
56
|
+
trys: [],
|
|
57
|
+
ops: []
|
|
58
|
+
},
|
|
59
|
+
f,
|
|
60
|
+
y,
|
|
61
|
+
t,
|
|
62
|
+
g;
|
|
63
|
+
return g = {
|
|
64
|
+
next: verb(0),
|
|
65
|
+
"throw": verb(1),
|
|
66
|
+
"return": verb(2)
|
|
67
|
+
}, typeof Symbol === "function" && (g[Symbol.iterator] = function () {
|
|
68
|
+
return this;
|
|
69
|
+
}), g;
|
|
70
|
+
|
|
71
|
+
function verb(n) {
|
|
72
|
+
return function (v) {
|
|
73
|
+
return step([n, v]);
|
|
74
|
+
};
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
function step(op) {
|
|
78
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
79
|
+
|
|
80
|
+
while (_) {
|
|
81
|
+
try {
|
|
82
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
83
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
84
|
+
|
|
85
|
+
switch (op[0]) {
|
|
86
|
+
case 0:
|
|
87
|
+
case 1:
|
|
88
|
+
t = op;
|
|
89
|
+
break;
|
|
90
|
+
|
|
91
|
+
case 4:
|
|
92
|
+
_.label++;
|
|
93
|
+
return {
|
|
94
|
+
value: op[1],
|
|
95
|
+
done: false
|
|
96
|
+
};
|
|
97
|
+
|
|
98
|
+
case 5:
|
|
99
|
+
_.label++;
|
|
100
|
+
y = op[1];
|
|
101
|
+
op = [0];
|
|
102
|
+
continue;
|
|
103
|
+
|
|
104
|
+
case 7:
|
|
105
|
+
op = _.ops.pop();
|
|
106
|
+
|
|
107
|
+
_.trys.pop();
|
|
108
|
+
|
|
109
|
+
continue;
|
|
110
|
+
|
|
111
|
+
default:
|
|
112
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) {
|
|
113
|
+
_ = 0;
|
|
114
|
+
continue;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
if (op[0] === 3 && (!t || op[1] > t[0] && op[1] < t[3])) {
|
|
118
|
+
_.label = op[1];
|
|
119
|
+
break;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
if (op[0] === 6 && _.label < t[1]) {
|
|
123
|
+
_.label = t[1];
|
|
124
|
+
t = op;
|
|
125
|
+
break;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
if (t && _.label < t[2]) {
|
|
129
|
+
_.label = t[2];
|
|
130
|
+
|
|
131
|
+
_.ops.push(op);
|
|
132
|
+
|
|
133
|
+
break;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
if (t[2]) _.ops.pop();
|
|
137
|
+
|
|
138
|
+
_.trys.pop();
|
|
139
|
+
|
|
140
|
+
continue;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
op = body.call(thisArg, _);
|
|
144
|
+
} catch (e) {
|
|
145
|
+
op = [6, e];
|
|
146
|
+
y = 0;
|
|
147
|
+
} finally {
|
|
148
|
+
f = t = 0;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
if (op[0] & 5) throw op[1];
|
|
153
|
+
return {
|
|
154
|
+
value: op[0] ? op[1] : void 0,
|
|
155
|
+
done: true
|
|
156
|
+
};
|
|
157
|
+
}
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
import ROSLIB from 'roslib';
|
|
161
|
+
import { loadScript } from '../../load-script';
|
|
162
|
+
export function getRainbowColor(pct) {
|
|
163
|
+
var h = (1 - pct) * 5.0 + 1.0;
|
|
164
|
+
var i = Math.floor(h);
|
|
165
|
+
var f = h % 1.0;
|
|
166
|
+
|
|
167
|
+
if ((i & 1) === 0) {
|
|
168
|
+
f = 1 - f;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
var n = 1 - f;
|
|
172
|
+
var dic = [{
|
|
173
|
+
r: n,
|
|
174
|
+
g: 0,
|
|
175
|
+
b: 1
|
|
176
|
+
}, {
|
|
177
|
+
r: 0,
|
|
178
|
+
g: n,
|
|
179
|
+
b: 1
|
|
180
|
+
}, {
|
|
181
|
+
r: 0,
|
|
182
|
+
g: 1,
|
|
183
|
+
b: n
|
|
184
|
+
}, {
|
|
185
|
+
r: n,
|
|
186
|
+
g: 1,
|
|
187
|
+
b: 0
|
|
188
|
+
}, {
|
|
189
|
+
r: 1,
|
|
190
|
+
g: n,
|
|
191
|
+
b: 0
|
|
192
|
+
}];
|
|
193
|
+
|
|
194
|
+
if (i < 1) {
|
|
195
|
+
i = 1;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
var temp = dic[i - 1] || dic[4];
|
|
199
|
+
Object.keys(temp).forEach(function (key) {
|
|
200
|
+
return temp[key] = temp[key] * 255;
|
|
201
|
+
});
|
|
202
|
+
return __assign(__assign({}, temp), {
|
|
203
|
+
a: 1
|
|
204
|
+
});
|
|
205
|
+
}
|
|
206
|
+
export function colormap(x) {
|
|
207
|
+
var minColorValue = 0;
|
|
208
|
+
var maxColorValue = 512 * 512 * 512;
|
|
209
|
+
var colorFieldRange = maxColorValue - minColorValue || Infinity;
|
|
210
|
+
var pct = Math.max(0, Math.min((Math.pow(x, 4) - minColorValue) / colorFieldRange, 1));
|
|
211
|
+
return getRainbowColor(pct);
|
|
212
|
+
}
|
|
213
|
+
export function loadLib(url) {
|
|
214
|
+
return __awaiter(this, void 0, void 0, function () {
|
|
215
|
+
return __generator(this, function (_a) {
|
|
216
|
+
switch (_a.label) {
|
|
217
|
+
case 0:
|
|
218
|
+
if (!window.ROSLIB) {
|
|
219
|
+
window.ROSLIB = ROSLIB;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
if (window.ROS3D) {
|
|
223
|
+
return [2
|
|
224
|
+
/*return*/
|
|
225
|
+
, window.ROS3D];
|
|
226
|
+
}
|
|
227
|
+
|
|
228
|
+
return [4
|
|
229
|
+
/*yield*/
|
|
230
|
+
, loadScript(url)];
|
|
231
|
+
|
|
232
|
+
case 1:
|
|
233
|
+
_a.sent();
|
|
234
|
+
|
|
235
|
+
return [2
|
|
236
|
+
/*return*/
|
|
237
|
+
, window.ROS3D];
|
|
238
|
+
}
|
|
239
|
+
});
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
export var basePointCloudOptions = {
|
|
243
|
+
colorsrc: 'intensity',
|
|
244
|
+
material: {
|
|
245
|
+
size: 0.1
|
|
246
|
+
},
|
|
247
|
+
max_pts: 10000000,
|
|
248
|
+
colormap: colormap
|
|
249
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { RosConfigure } from '../factory/configure';
|
|
2
|
+
import { InjectUtil } from './inject';
|
|
3
|
+
interface InitProps {
|
|
4
|
+
elem: any;
|
|
5
|
+
view?: any;
|
|
6
|
+
tf?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare class RosViewer {
|
|
9
|
+
private readonly configure;
|
|
10
|
+
private elem;
|
|
11
|
+
ROS3D: any;
|
|
12
|
+
viewer: any;
|
|
13
|
+
iu: InjectUtil;
|
|
14
|
+
constructor(configure: RosConfigure);
|
|
15
|
+
init({ elem, view, tf }: InitProps): Promise<void>;
|
|
16
|
+
destroy(): void;
|
|
17
|
+
initPointClouds(optList: any[]): any[];
|
|
18
|
+
}
|
|
19
|
+
export {};
|