MCPcopy Create free account
hub / github.com/PeterFWS/Structure-PLP-SLAM / updateKeyframe

Method updateKeyframe

viewer/public/js/CameraFrames.js:122–131  ·  view source on GitHub ↗
(id, pose)

Source from the content-addressed store, hash-verified

120 // public methods
121
122 updateKeyframe(id, pose) {
123 let index = this.keyframeIndices[id];
124
125 if (index < 0 || index === undefined) {
126 this.addKeyframe(id, pose);
127 }
128 else {
129 this.changeKeyframePos(index, pose);
130 }
131 }
132
133 updateCurrentFrame(pose) {
134 let lineGeometry = this.makeWireframe(pose, this.currentFrameWireSize);

Callers 1

updateMapElementsFunction · 0.80

Calls 2

addKeyframeMethod · 0.95
changeKeyframePosMethod · 0.95

Tested by

no test coverage detected