Calling other callback from callback class
Hi,
I'm using the callback class like class X{ callback(){} X(){ros::publisher sub1 = n.subscribe(&callback); callback();} run()};
but can you do from this callback method: callback(){ ros::publisher sub2 = n.subscribe(&callback2); callback2():}. I couldn't find about this.
I hope the question is clear. Thanks.