Skip to content

Commit f0fa305

Browse files
committed
Merge pull request #57 from rctoris/devel
checks for leading slash in frame ID
2 parents a4b1e4e + 9938d1b commit f0fa305

File tree

3 files changed

+7
-1
lines changed

3 files changed

+7
-1
lines changed

build/roslib.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1180,6 +1180,9 @@ ROSLIB.TFClient.prototype.processFeedback = function(tf) {
11801180
var that = this;
11811181
tf.transforms.forEach(function(transform) {
11821182
var frameID = transform.child_frame_id;
1183+
if (frameID[0] !== '/') {
1184+
frameID = '/' + frameID;
1185+
}
11831186
var info = that.frameInfos[frameID];
11841187
if (info !== undefined) {
11851188
info.transform = new ROSLIB.Transform({

0 commit comments

Comments
 (0)