Skip to content

Commit

Permalink
Updated naming of thread functions
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulgoel873 committed Mar 7, 2024
1 parent ebd7291 commit 0163ed5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions rb_ws/src/buggy/scripts/auton/autonsystem.py
Original file line number Diff line number Diff line change
Expand Up @@ -167,8 +167,8 @@ def tick_caller(self):
with self.lock:
_, _ = self.get_world_pose_and_speed(self.self_odom_msg)

p2 = threading.Thread(target=self.planner_process)
p1 = threading.Thread(target=self.local_controller_process)
p2 = threading.Thread(target=self.planner_thread)
p1 = threading.Thread(target=self.local_controller_thread)

# starting processes
# See LOOKAHEAD_TIME in path_planner.py for the horizon of the
Expand All @@ -191,7 +191,7 @@ def get_world_pose_and_speed(self, msg):
pose_gps = Pose.rospose_to_pose(current_rospose)
return World.gps_to_world_pose(pose_gps), current_speed

def local_controller_process(self):
def local_controller_thread(self):
while (not rospy.is_shutdown()):
self.local_controller_tick()
self.rosrate_controller.sleep()
Expand All @@ -207,7 +207,7 @@ def local_controller_tick(self):
self.steer_publisher.publish(Float64(steering_angle_deg))


def planner_process(self):
def planner_thread(self):
while (not rospy.is_shutdown()):
if not self.other_odom_msg is None:
with self.lock:
Expand Down

0 comments on commit 0163ed5

Please sign in to comment.