Subscription of pose is not properly subscribed
I have a publisher node that publishes a pose message. I have check via rostopic echo -c /topic and it is there the pose message. There is another node (subscriber) that subscribes to the publisher node via callback member function. The weird thing I am currently facing is the subscriber node is node able to subscribe to the message that being published. The subscriber node is not only not being able to subscribe to the message, but also, it could not send a signal that the function is ever called like below:
void PointCloudBuilder::poseLDCallback(const geometry_msgs::PoseStampedConstPtr& poseLD_ptr)
{
ROS_INFO("I heard something");
}
I have also tried to publish the message in the publisher node using Pose type instead of PoseStamped and changed accordingly in the input parameter from the callback subscriber member function, however, nothing is fixed.
I am pretty sure that it is not well subscribed because I have seen the output from rxconsole and previously I have been doing to subscribe to pose2D type, and it was working well, and could see the correct output from rxconsole.
Any idea what actually went wrong with this kind of strange behavior of my subscription.
Thanks in advance.