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

Compressed image transfer syntax

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

cheour gravatar image


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

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

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

Question Tools


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

Seen: 379 times

Last updated: Oct 20 '12