Debugging a bad topic subscription
Hi,
I just solve a situation I don't know how to debug. When subscribing to a topic, the prototype of my callback function was
void my_callback(const std_msgs::String::ConstPtr& msg);
instead of
void my_callback(const control_msgs::JointControllerState::ConstPtr& msg);
However, the code compiled fine and no error was reported at runtime. For future use, where should I look to get more debug info on topic subscriptions?