{"action":"created","issue":{"url":"https://api.github.com/repos/RobotWebTools/ros3djs/issues/177","repository_url":"https://api.github.com/repos/RobotWebTools/ros3djs","labels_url":"https://api.github.com/repos/RobotWebTools/ros3djs/issues/177/labels{/name}","comments_url":"https://api.github.com/repos/RobotWebTools/ros3djs/issues/177/comments","events_url":"https://api.github.com/repos/RobotWebTools/ros3djs/issues/177/events","html_url":"https://github.com/RobotWebTools/ros3djs/issues/177","id":223814983,"number":177,"title":"Removal of instances (viewer, URDFClient, TFClient)?","user":{"login":"ninaschaaf","id":12685954,"avatar_url":"https://avatars1.githubusercontent.com/u/12685954?v=4","gravatar_id":"","url":"https://api.github.com/users/ninaschaaf","html_url":"https://github.com/ninaschaaf","followers_url":"https://api.github.com/users/ninaschaaf/followers","following_url":"https://api.github.com/users/ninaschaaf/following{/other_user}","gists_url":"https://api.github.com/users/ninaschaaf/gists{/gist_id}","starred_url":"https://api.github.com/users/ninaschaaf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ninaschaaf/subscriptions","organizations_url":"https://api.github.com/users/ninaschaaf/orgs","repos_url":"https://api.github.com/users/ninaschaaf/repos","events_url":"https://api.github.com/users/ninaschaaf/events{/privacy}","received_events_url":"https://api.github.com/users/ninaschaaf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-04-24T13:10:41Z","updated_at":"2018-05-24T14:44:12Z","closed_at":null,"author_association":"NONE","body":"We use the ros3D library for visualizing different robot models for different ROS-Connections in our web-app. \r\nUnfortunately this use-case produces a memory leak due to the necessity to create multiple instances of \"Viewer\", \"URDFClient\" and \"TFClient\".\r\nIs there any way to \"update\" the existing instances, for instance when the ros-connection changes -  in order to avoid having to create new instances for each ROS connection? Or is there a way to remove/dispose the instances completely?\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/RobotWebTools/ros3djs/issues/comments/391741007","html_url":"https://github.com/RobotWebTools/ros3djs/issues/177#issuecomment-391741007","issue_url":"https://api.github.com/repos/RobotWebTools/ros3djs/issues/177","id":391741007,"user":{"login":"renarded","id":11923396,"avatar_url":"https://avatars1.githubusercontent.com/u/11923396?v=4","gravatar_id":"","url":"https://api.github.com/users/renarded","html_url":"https://github.com/renarded","followers_url":"https://api.github.com/users/renarded/followers","following_url":"https://api.github.com/users/renarded/following{/other_user}","gists_url":"https://api.github.com/users/renarded/gists{/gist_id}","starred_url":"https://api.github.com/users/renarded/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/renarded/subscriptions","organizations_url":"https://api.github.com/users/renarded/orgs","repos_url":"https://api.github.com/users/renarded/repos","events_url":"https://api.github.com/users/renarded/events{/privacy}","received_events_url":"https://api.github.com/users/renarded/received_events","type":"User","site_admin":false},"created_at":"2018-05-24T14:44:12Z","updated_at":"2018-05-24T14:44:12Z","author_association":"NONE","body":"Up ! :)\r\n\r\nI have exactly the same issue as @ninaschaaf . I want to be able to remove the robot on the viewer when I disconnect from ros, and load the robot again (not necessarily the same model, depends on the robot I'm connected to) on another connection, with a new TFclient and URDFClient.\r\n\r\nI have tried to set the Viewer, Urdfclient and Tfclient objects to undefined, and also to remove the <canvas> HTML tag inside the urdf div using removeChild(). With no success.\r\n"}}
{"actor":{"display_login":"renarded"}}