Skip to content

Commit 8d14ff8

Browse files
updated naming convention
1 parent 539423b commit 8d14ff8

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

src/jetson_pkg/jetson_pkg/gps_apriltag_comparison.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@
1010
import cv2
1111

1212
#how off the coordinates can be from each other
13-
distanceError = 0.25
13+
DISTANCE_ERROR = 0.25
1414

15-
class coordinateComparison(Node):
15+
class CoordinateComparison(Node):
1616
def __init__(self):
1717
super().__init__('coordinate_comparison_node')
1818
self.comparison_publisher_ = self.create_publisher(Twist, '/comparison', 10)
@@ -64,7 +64,7 @@ def coords_distance(self, apriltag_coords: Twist, gps_coords: Twist):
6464

6565

6666
def is_coords_in_range(self, distance):
67-
return distance <= distanceError
67+
return distance <= DISTANCE_ERROR
6868

6969

7070
def coords_comparison(self):
@@ -90,7 +90,7 @@ def coords_comparison(self):
9090

9191
def main(args=None):
9292
rclpy.init(args=args)
93-
node = coordinateComparison()
93+
node = CoordinateComparison()
9494
rclpy.spin(node)
9595
node.destroy_node()
9696
rclpy.shutdown()

src/jetson_pkg/jetson_pkg/gps_conversion.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import cv2
1111

1212

13-
class gpsConversion(Node):
13+
class GpsConversion(Node):
1414
def __init__(self):
1515
super().__init__('gps_conversion')
1616
self.gps_conversion_publisher_ = self.create_publisher(Twist, '/gps_conversion', 10)
@@ -80,7 +80,7 @@ def timer_callback(self):
8080

8181
def main(args=None):
8282
rclpy.init(args=args)
83-
gps_conversion = gpsConversion()
83+
gps_conversion = GpsConversion()
8484
rclpy.spin(gps_conversion)
8585

8686
gps_conversion.destroy_node()

0 commit comments

Comments
 (0)