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

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");

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? (Full text of publisher.h)

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

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

Question Tools

1 follower


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

Seen: 2,446 times

Last updated: Jul 22 '12