rospy getting two publishers
Hi All,
I have a two or more nodes publishing in the diagnostic topic.
roman@roman-virtual-machine1:~/nagios$ rostopic info diagnostics
Type: diagnostic_msgs/DiagnosticArray
Publishers:
* /mobile_base_nodelet_manager (http://roman-virtual-machine1:35669/)
* /play_1410810684593700345 (http://roman-virtual-machine1:40540/)
I am trying to read all Publishers information but when I use rospy I get only one Publisher at the time.
def listener():
#rospy.init_node('check_battery_kobuki', anonymous=True, disable_signals=True, log_level=rospy.DEBUG)
rospy.init_node('ros_diagnostics', anonymous=True, disable_signals=True)
rospy.Subscriber("diagnostics", DiagnosticArray , callback_kobuki)
rospy.spin()
Is there a way to get all Publishers in the same connection ?
Thanks in advance, Felipe Roman