Skip to content

Commit

Permalink
Label the scene node using the visual element's name (RobotWebTools#309)
Browse files Browse the repository at this point in the history
  • Loading branch information
J-Rojas authored Jul 28, 2020
1 parent 69928f0 commit edfc311
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/urdf/Urdf.js
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ ROS3D.Urdf = function(options) {
tfClient : tfClient,
object : mesh
});
this.add(sceneNode);
sceneNode.name = visual.name
this.add(sceneNode);
} else {
console.warn('Could not load geometry mesh: '+uri);
}
Expand All @@ -83,6 +84,7 @@ ROS3D.Urdf = function(options) {
tfClient: tfClient,
object: shapeMesh
});
scene.name = visual.name
this.add(scene);
}
}
Expand Down

0 comments on commit edfc311

Please sign in to comment.