How can i have a subscriber within a subscriber
I need to subscribe to a topic within a subscriber, is this possible? and if so how can i accomplish it, thanks
ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange |
asked 2013-12-05 05:18:55 -0500
This post is a wiki. Anyone with karma >75 is welcome to improve it.
I need to subscribe to a topic within a subscriber, is this possible? and if so how can i accomplish it, thanks
Can you clarify what it is you're trying to do and why? Typical pattern would be to subscribe to the two topics independently, cache one them using a shared_ptr, and do your processing for both in the second one's callback.
@mikepurvis Thanks a lot that worked, right now im having problem subscribing to /move_base/current_goal do you have any idea how to accomplish this?
Looks like you started a new question for this: http://answers.ros.org/question/107276/subscribing-to-move_basecurrent_goal/
Asked: 2013-12-05 05:18:55 -0500
Seen: 230 times
Last updated: Dec 05 '13
Message data type and accessing message fields
Rosserial/Arduino Publishers and Subscribers
How to combine two topics in one callback (when synchronization is not possible)
Problem with subscribing to a topic that contains slash
ros::subscriber global variable a bad idea?
rosserial Publish and Subscribe to Ultrasonic Ping Range Data?
Subscribing to templated message type
How to keep ros node alive even after exiting the code? [closed]
ROS How can I determine which node is currently feeding a specific topic?
How to publish a dictionary with other dictionary inside in a topic?