Restructure codebase
This commit is contained in:
@@ -55,7 +55,7 @@ class PublishTarget(Node):
|
||||
def __init__(self):
|
||||
super().__init__('publisher')
|
||||
self.publisher_ = self.create_publisher(PoseStamped, '/target_pose', 10)
|
||||
timer_period = 7.0 # seconds
|
||||
timer_period = 4.0 # seconds
|
||||
self.timer = self.create_timer(timer_period, self.timer_callback)
|
||||
self.i = 0
|
||||
|
||||
@@ -66,7 +66,7 @@ class PublishTarget(Node):
|
||||
#print(p.orientation)
|
||||
xml = ET.parse('svg/test.svg')
|
||||
svg = xml.getroot()
|
||||
self.map_point = map_point_function(float(svg.get('width')), float(svg.get('height')), 0.1, 0.5, -0.2, 0.2)
|
||||
self.map_point = map_point_function(float(svg.get('width')), float(svg.get('height')), 0.2, 0.4, -0.1, 0.1)
|
||||
self.points = []
|
||||
for child in svg:
|
||||
if (child.tag == 'line'):
|
||||
|
||||
Reference in New Issue
Block a user