Restructure codebase

This commit is contained in:
2022-12-12 13:48:43 +02:00
parent 697312ed8c
commit ee4e82f3b6
14 changed files with 360 additions and 4 deletions

View File

@@ -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'):