Ask Your Question
0

Error thrown from publisher.h header file

asked 2012-07-18 11:28:55 -0500

UW NDCL gravatar image

We're trying to communicate via publisher/subscriber nodes between a laptop and a PC-104, but whenever we try to send a message, this error is returned:

QMetaObject::connectSlotsByName: No matching signal for on_button_move_to_clicked(int) file = /opt/ros/fuerte/include/ros/publisher.h line = 102 cond = false message = Trace/breakpoint trap

Which is generated by this line in publisher.h:

  if (!impl_)
     {
       ROS_ASSERT_MSG(false, "Call to publish() on an invalid Publisher");
       return;
     }

But we're not sure what "!impl_" means, so we can't figure out what exactly is triggering this error. Has anyone dealt with this before?

http://mirror.umd.edu/roswiki/doc/api/roscpp/html/publisher_8h_source.html (Full text of publisher.h)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted
0

answered 2012-07-22 21:45:04 -0500

Lorenz gravatar image

To me it looks like you are trying to call publish on an uninitialized publisher object. Make sure that you initialize it by calling NodeHandle::advertise before you are trying to publish anything. Btw., you can check if a publisher is valid by:

if( !publisher ) {
  ROS_WARN("Publisher invalid!");
}
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: 2012-07-18 11:28:55 -0500

Seen: 2,235 times

Last updated: Jul 22 '12