5 from pal_statistics_msgs.msg
import Statistics
8 def __init__(self, topics, system_name=None, dry_run=False):
10 self.
gs = graphitesend.GraphiteClient(prefix=
'', graphite_server=
'localhost', \
11 system_name=system_name, dryrun=dry_run)
19 timestamp = rospy.Time(msg.header.stamp.secs, msg.header.stamp.nsecs)
22 for stat
in msg.statistics:
23 stats.append((stat.name, stat.value))
25 result = self.
gs.send_list(stats, timestamp.to_sec())
def __init__(self, topics, system_name=None, dry_run=False)
def statistics_callback(self, msg)