{"action":"created","issue":{"url":"https://api.github.com/repos/iocchi/PetriNetPlans/issues/4","labels_url":"https://api.github.com/repos/iocchi/PetriNetPlans/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/iocchi/PetriNetPlans/issues/4/comments","events_url":"https://api.github.com/repos/iocchi/PetriNetPlans/issues/4/events","html_url":"https://github.com/iocchi/PetriNetPlans/issues/4","id":63170444,"number":4,"title":"Class functions in register_action()","user":{"login":"Tastalian","id":1189580,"avatar_url":"https://avatars.githubusercontent.com/u/1189580?v=3","gravatar_id":"","url":"https://api.github.com/users/Tastalian","html_url":"https://github.com/Tastalian","followers_url":"https://api.github.com/users/Tastalian/followers","following_url":"https://api.github.com/users/Tastalian/following{/other_user}","gists_url":"https://api.github.com/users/Tastalian/gists{/gist_id}","starred_url":"https://api.github.com/users/Tastalian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tastalian/subscriptions","organizations_url":"https://api.github.com/users/Tastalian/orgs","repos_url":"https://api.github.com/users/Tastalian/repos","events_url":"https://api.github.com/users/Tastalian/events{/privacy}","received_events_url":"https://api.github.com/users/Tastalian/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-03-20T06:03:21Z","updated_at":"2015-06-18T07:51:20Z","closed_at":"2015-06-18T07:51:20Z","body":"Hi,\r\n\r\nIn ROS, it is possible to subscribe to a topic with a class function, e.g. from inside an object:\r\n\r\n    sub = nh.subscribe(\"/my_topic\", 10, &MyClass::callback, this);\r\n\r\nCould it be possible to do the same within an ActionServer, e.g. from the constructor:\r\n\r\n    register_action(\"init\", &MyClass::exec_init, this);\r\n\r\nThat would enable OOP constructions, and avoid global variables in one's code..."},"comment":{"url":"https://api.github.com/repos/iocchi/PetriNetPlans/issues/comments/113065856","html_url":"https://github.com/iocchi/PetriNetPlans/issues/4#issuecomment-113065856","issue_url":"https://api.github.com/repos/iocchi/PetriNetPlans/issues/4","id":113065856,"user":{"login":"Tastalian","id":1189580,"avatar_url":"https://avatars.githubusercontent.com/u/1189580?v=3","gravatar_id":"","url":"https://api.github.com/users/Tastalian","html_url":"https://github.com/Tastalian","followers_url":"https://api.github.com/users/Tastalian/followers","following_url":"https://api.github.com/users/Tastalian/following{/other_user}","gists_url":"https://api.github.com/users/Tastalian/gists{/gist_id}","starred_url":"https://api.github.com/users/Tastalian/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tastalian/subscriptions","organizations_url":"https://api.github.com/users/Tastalian/orgs","repos_url":"https://api.github.com/users/Tastalian/repos","events_url":"https://api.github.com/users/Tastalian/events{/privacy}","received_events_url":"https://api.github.com/users/Tastalian/received_events","type":"User","site_admin":false},"created_at":"2015-06-18T07:51:20Z","updated_at":"2015-06-18T07:51:20Z","body":"Oops, sorry for the noise. Thank you for your answer."}}