ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
0

javafx image from sensor messages: CompressedImage

asked 2018-08-31 16:25:13 -0600

pulkitgupta1217 gravatar image

updated 2018-09-01 18:21:39 -0600

im wondering if anyone has had experience or knows how to convert a compressed image message from a topic to an image usable for a javafx image?

Edit: i am attemption to create a remote viewing and control application for a robot and want to be able to take the compressed image messages and put them to an imageview.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2018-09-01 18:15:01 -0600

According to the documentation javafx supports most of the standard formats including JPEG. You can use the inage_view tool to save images from an image topic as JPEG files.

Hope this helps.

edit flag offensive delete link more

Comments

I am looking to connect to a ros master and listen to a compressed image topic and populate a javafx gui with these images in realtime. what you suggested works if i wish to display a slideshow of images captured from the ros session after it has terminated

pulkitgupta1217 gravatar image pulkitgupta1217  ( 2018-09-03 18:52:38 -0600 )edit

The data member of a compressed image topic, is the same as the binary content of a png compressed image file. If javafx supports creating an image resource from a stream then you could use this without needed to put the image in a file ever.

PeteBlackerThe3rd gravatar image PeteBlackerThe3rd  ( 2018-09-10 09:17:31 -0600 )edit

Question Tools

2 followers

Stats

Asked: 2018-08-31 16:25:13 -0600

Seen: 124 times

Last updated: Sep 01 '18