Ask Your Question
0

Compressed image transfer syntax

asked 2012-10-19 01:26:18 -0500

cheour gravatar image

Hi,

I have a point grey chamelon ieeee1394 camera. I'm able to get the images with camera1394 node through image_transport method. I'm taking the raw image from /camera/image_color node inside class with standart image_transport subscribe.

 image_transport::ImageTransport it(nh);
 image_transport::Subscriber sub = it.subscribe("camera/image_color", 1, &ImageGate::readImage(), this );

Here readImage(const sensor_msgs::ImageConstPtr& msg) is defined.

But when I try to get the compressed image I did not make it. I tried something like:

image_transport::Subscriber sub = it.subscribe<sensor_msgs::CompressedImage>("camera/image_color", 1, &ImageGate::readImage(), this );

But it didn't work like this. Also I didn't find the way within compressed image tutorial.

Any ideas?

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-10-20 02:15:53 -0500

Kevin gravatar image

I had a problem like that a while ago and it was because the compressed image plugin wasn't built. Maybe try:

rosmake compressed_image_transport
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

Stats

Asked: 2012-10-19 01:26:18 -0500

Seen: 214 times

Last updated: Oct 20 '12