{"action":"created","issue":{"url":"https://api.github.com/repos/rosjava/rosjava_core/issues/209","labels_url":"https://api.github.com/repos/rosjava/rosjava_core/issues/209/labels{/name}","comments_url":"https://api.github.com/repos/rosjava/rosjava_core/issues/209/comments","events_url":"https://api.github.com/repos/rosjava/rosjava_core/issues/209/events","html_url":"https://github.com/rosjava/rosjava_core/issues/209","id":63384115,"number":209,"title":"Implement cv_bridge on rosjava","user":{"login":"talregev","id":7043539,"avatar_url":"https://avatars.githubusercontent.com/u/7043539?v=3","gravatar_id":"","url":"https://api.github.com/users/talregev","html_url":"https://github.com/talregev","followers_url":"https://api.github.com/users/talregev/followers","following_url":"https://api.github.com/users/talregev/following{/other_user}","gists_url":"https://api.github.com/users/talregev/gists{/gist_id}","starred_url":"https://api.github.com/users/talregev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talregev/subscriptions","organizations_url":"https://api.github.com/users/talregev/orgs","repos_url":"https://api.github.com/users/talregev/repos","events_url":"https://api.github.com/users/talregev/events{/privacy}","received_events_url":"https://api.github.com/users/talregev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-21T09:58:48Z","updated_at":"2015-08-18T11:06:34Z","closed_at":null,"body":"can it Implement cv_bridge for rosjava?\r\nhttps://github.com/ros-perception/vision_opencv\r\n\r\nTal."},"comment":{"url":"https://api.github.com/repos/rosjava/rosjava_core/issues/comments/132173252","html_url":"https://github.com/rosjava/rosjava_core/issues/209#issuecomment-132173252","issue_url":"https://api.github.com/repos/rosjava/rosjava_core/issues/209","id":132173252,"user":{"login":"talregev","id":7043539,"avatar_url":"https://avatars.githubusercontent.com/u/7043539?v=3","gravatar_id":"","url":"https://api.github.com/users/talregev","html_url":"https://github.com/talregev","followers_url":"https://api.github.com/users/talregev/followers","following_url":"https://api.github.com/users/talregev/following{/other_user}","gists_url":"https://api.github.com/users/talregev/gists{/gist_id}","starred_url":"https://api.github.com/users/talregev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/talregev/subscriptions","organizations_url":"https://api.github.com/users/talregev/orgs","repos_url":"https://api.github.com/users/talregev/repos","events_url":"https://api.github.com/users/talregev/events{/privacy}","received_events_url":"https://api.github.com/users/talregev/received_events","type":"User","site_admin":false},"created_at":"2015-08-18T11:06:34Z","updated_at":"2015-08-18T11:06:34Z","body":"From not completed [Wiki:][1]\r\n```Java\r\n//Converting ROS image messages to OpenCV images\r\nCvImage cv_image = CvImage.toCvCopy(image_message, \"bgr8\");\r\n\r\n//Converting OpenCV images to ROS image messages\r\n//you need to create your own node and your own publisher, and a new empty msgs.\r\nresolver = node.getResolver().newChild(\"/camera\");\r\nrawImagePublisher = node.newPublisher(resolver.resolve(\"image/raw\"), Image._TYPE);\r\nImage rawImage = rawImagePublisher.newMessage();\r\n\r\n//code using the library:\r\nCvImage cvImage = new CvImage(cv_image, \"bgr8\");\r\nimage_message = cvImage.toImageMsg(rawImage);\r\n```\r\n\r\n[1]: http://wiki.ros.org/cv_bridge/Tutorials/Converting%20between%20ROS%20images%20and%20OpenCV%20images%20%28Android%20Java%29#preview"}}