Ask Your Question

count_dueki's profile - activity

2019-04-14 02:28:27 -0500 received badge  Famous Question (source)
2019-04-14 02:28:27 -0500 received badge  Notable Question (source)
2018-09-12 02:32:25 -0500 commented answer Callback CompressedImage /w image_transport

Thank you for your quick answer (and sorry for my late comment!). I have to access the compressed Image directly (to sav

2018-09-12 02:30:25 -0500 marked best answer Callback CompressedImage /w image_transport

Hello, I am trying to get the images of a kinect topic via image_transport. I added a Subscriber like this

image_transport::ImageTransport it(nh);
image_transport::TransportHints th("compressed");
image_transport::Subscriber img_sub = it.subscribe("/camera/rgb/image_raw", 1, savingImagesCb, ros::VoidPtr(), th);

my Callback:

void savingImagesCb(const sensor_msgs::CompressedImageConstPtr& msg)

It produces the compilation error:

logger.cpp:50:118:   required from here
/usr/include/boost/function/function_template.hpp:118:11: error: invalid initialization of reference of type ‘const boost::shared_ptr<const sensor_msgs::CompressedImage_<std::allocator<void> > >&’ from expression of type ‘const boost::shared_ptr<const sensor_msgs::Image_<std::allocator<void> > >’
       BOOST_FUNCTION_RETURN(f(BOOST_FUNCTION_ARGS));

I need the CompressedImage format for further processing, but image_transport won't allow this. How can I subscribe to a topic of this type (other than a normal Subscriber)?

2018-09-12 02:30:25 -0500 received badge  Scholar (source)
2018-09-08 06:23:02 -0500 received badge  Popular Question (source)
2018-09-07 13:10:00 -0500 asked a question Callback CompressedImage /w image_transport

Callback CompressedImage /w image_transport Hello, I am trying to get the images of a kinect topic via image_transport.

2018-06-17 08:33:46 -0500 received badge  Supporter (source)
2018-06-17 07:18:02 -0500 commented answer Unexpected behavior with actionlib_tutorials

I got the same problem that achille had. even when I follow the guidelines gvdhoorn provided still there is no output fr

2017-05-15 14:26:10 -0500 commented question Exception thrown:"world" passed to lookupTransform argument target_frame does not exist.

I had the same error in the tf tutorial for writing a broadcaster (cpp). My mistake was to forget to assign the value f