scripts
carbon_collector_node.py
Go to the documentation of this file.
1
#!/usr/bin/env python
2
3
import
graphitesend
4
import
rospy
5
import
sys
6
from
pal_statistics_msgs.msg
import
Statistics
7
from
pal_carbon_collector.carbon_collector
import
CarbonCollector
8
9
if
__name__ ==
"__main__"
:
10
rospy.init_node(
'carbon_collector_node'
)
11
12
if
not
rospy.has_param(
'~topics'
):
13
print
"No topics were specified"
14
sys.exit(1)
15
16
topics = rospy.get_param(
'~topics'
)
17
18
dry_run =
False
19
if
rospy.has_param(
'~dry_run'
):
20
dry_run = rospy.get_param(
'~dry_run'
)
21
22
carbon_collector =
CarbonCollector
(topics, dry_run=dry_run)
23
24
rospy.spin()
25
26
sys.exit(0)
pal_carbon_collector.carbon_collector
Definition:
carbon_collector.py:1
pal_carbon_collector.carbon_collector.CarbonCollector
Definition:
carbon_collector.py:7
pal_carbon_collector
Author(s): Jordan Palacios
autogenerated on Mon Feb 28 2022 23:04:04