How can I have a subscriber within an action service? [PYTHON] [closed]
The problem I face is that both the action server and subscriber uses callback.So how can I make it work?
def action_callback():
sub = rospy.Subscriber( , ,sub_callback)
.
.
.
rospy.spin()
server = actionlib.SimpleActionServer(... , ... , action_callback)
rospy.spin()
yes! it will work most for time, are keeping it in the loop?
Yes, it works actually. I just had a small mistake with the rospy.sleep()
Okay ,all the best
Does anyone have a complete working example code on this?