Custom Costmap Plugin not subscribing to topic
I am running Turtlebot 2 and trying to create a new costmap layer as explained here http://wiki.ros.org/costmap_2d/Tutorials/Creating%20a%20New%20Layer. I want to subscribe to a topic and get data from one of my sensors. I have added the line to subscribe to that topic in the OnInitiliaze() function. But due to some reason, the callback function is not being called. When I run rostopic info my_topic, I find that a node has subscribed to it, but still my callback is not being called. I have also confirmed that messages are publishing properly over that topic. Any ideas what could be the possible reason for this ? Thanks.
Asked by b2meer on 2016-01-29 07:13:16 UTC
Comments