Ask Your Question

# Revision history [back]

The problem here is at the subscriber attribution, you must pass a function pointer to it using the '&' before the method name. If you replace the subscriber attribution line for the following, it may solves your problem:

sub=it.subscribe("/sensors/camera/top/image_raw",1, &Imtest::callbackSubscriber);


Waiting for reply.

The problem here is at the subscriber attribution, you must pass a function pointer to it using the '&' before the method name. If you replace the subscriber attribution line for the following, it may solves your problem:

sub=it.subscribe("/sensors/camera/top/image_raw",1, &Imtest::callbackSubscriber);
&Imtest::callbackSubscriber, this);


Waiting for reply.

The problem here is at the subscriber attribution, you must pass a function pointer to it using the '&' before the method name. If you replace the subscriber attribution line for the following, it may solves your problem:

problem:
sub=it.subscribe("/sensors/camera/top/image_raw",1, &Imtest::callbackSubscriber, this);


Waiting for reply.

The problem here is at the subscriber attribution, you must pass a function pointer to it using the '&' before the method name. If you replace the subscriber attribution line for the following, it may solves your problem: problem:

sub=it.subscribe("/sensors/camera/top/image_raw",1, &Imtest::callbackSubscriber, this); this);

Waiting for reply.

The problem here is at the subscriber attribution, you must pass a function pointer to it using the '&' before the method name. If you replace the subscriber attribution line for the following, it may solves your problem:

sub=it.subscribe("/sensors/camera/top/image_raw",1, &Imtest::callbackSubscriber, this);this);


Waiting for reply.