Skip to content
Snippets Groups Projects
Commit e329c93a authored by Sebastian Matz's avatar Sebastian Matz
Browse files

update

parent 5217b72e
No related branches found
No related tags found
No related merge requests found
Bilder/algorithmus.jpg

153 KiB | W: | H:

Bilder/algorithmus.jpg

157 KiB | W: | H:

Bilder/algorithmus.jpg
Bilder/algorithmus.jpg
Bilder/algorithmus.jpg
Bilder/algorithmus.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -75,6 +75,16 @@ class LineFollowerNode(Node):
twist.linear.x = 0.1
twist.angular.z = 0.0
self.get_logger().info('Geradeaus')
elif self.line_sensor_data[0] == 1:
# Voll nach links
twist.linear.x = 0.05
twist.angular.z = 0.8
self.get_logger().info('Hart Links')
elif self.line_sensor_data[4] == 1:
# Voll nach rechts
twist.linear.x = 0.05
twist.angular.z = -0.8
self.get_logger().info('Hart Rechts')
elif self.line_sensor_data[1] == 1:
# Nach links
twist.linear.x = 0.05
......@@ -90,16 +100,6 @@ class LineFollowerNode(Node):
twist.linear.x = 0.1
twist.angular.z = 0.0
self.get_logger().info('Geradeaus')
elif self.line_sensor_data[0] == 1:
# Voll nach links
twist.linear.x = 0.05
twist.angular.z = 0.8
self.get_logger().info('Hart Links')
elif self.line_sensor_data[4] == 1:
# Voll nach rechts
twist.linear.x = 0.05
twist.angular.z = -0.8
self.get_logger().info('Hart Rechts')
else:
# Linie verloren
self.get_logger().warn('Line verloren, fahre geradeaus')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment