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

Revision history [back]

click to hide/show revision 1
initial version

cloudcb is not a member of your class Listener. Thats why it won't be possible to call publishBbox() from within. Make it a class method and add your object reference to the subscriber like you did for the publisher.

You should also get your variable names right and think about moving the subscriber and publisher into your class, initializing them in the constructor.