Ask Your Question
0

[FATAL] : ASSERTION FAILED When trying to use CameraPublisher

asked 2015-03-26 07:23:44 -0600

aba92 gravatar image

Hi,

I've been trying to publish camera topics and when publishing image and camera_info topics with image_transport::CameraPublisher, using

image_transport::CameraPublisher left_image_pub;

left_image_pub.publish(left_image,left_cam_info);

I get:

[FATAL] [1427371749.536180328]: ASSERTION FAILED
    file = /tmp/buildd/ros-hydro-image-transport-1.11.4-0precise-20150101-0635/src/camera_publisher.cpp
    line = 126
    cond = false
    message = 
[FATAL] [1427371749.536421266]: Call to publish() on an invalid image_transport::CameraPublisher
[FATAL] [1427371749.536482747]: 

Trace/breakpoint trap (core dumped)

I would be very grateful if anyone could help me, because I tryied a lot to search about this subject but with no success.

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2015-03-26 07:28:13 -0600

dornhege gravatar image

Your publisher is empty/invalid. You need to advertise some topic to somewhere, otherwise: Where should the messages go to? Check the beginner tutorials for how to do that.

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

1 follower

Stats

Asked: 2015-03-26 07:23:44 -0600

Seen: 1,261 times

Last updated: Mar 26 '15