Skip to content

Commit

Permalink
i forgot to save??? pylinter
Browse files Browse the repository at this point in the history
  • Loading branch information
mehulgoel873 committed Jan 8, 2025
1 parent 2fc4cdb commit be493a5
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion rb_ws/src/buggy/scripts/path_planner/path_planner.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def __init__(self) -> None:
#Publishers
self.other_buggy_xtrack_publisher = self.create_publisher(Float64, "self/debug/other_buggy_xtrack", 10)
self.traj_publisher = self.create_publisher(TrajectoryMsg, "self/cur_traj", 10)

#Subscribers
self.self_pose_subscriber = self.create_subscription(Odometry, 'self/state', self.self_pose_callback, 1)
self.other_pose_subscriber = self.create_subscription(Odometry, 'other/state', self.other_pose_callback, 1)
Expand Down
8 changes: 4 additions & 4 deletions rb_ws/src/buggy/scripts/simulator/engine.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#! /usr/bin/env python3
import threading
import sys
import time
import rclpy
from rclpy.node import Node
from geometry_msgs.msg import Pose, Twist, PoseWithCovariance, TwistWithCovariance
Expand All @@ -9,7 +10,6 @@
from nav_msgs.msg import Odometry
import numpy as np
import utm
import time

sys.path.append("/rb_ws/src/buggy/scripts")
from util.constants import Constants
Expand Down Expand Up @@ -184,12 +184,12 @@ def loop(self):
def main(args=None):
rclpy.init(args=args)
sim = Simulator()
for i in range(500):
for _ in range(500):
time.sleep(0.01)
sim.publish()


sim.get_logger().info("STARTED PUBLISHING")

sim.get_logger().info("STARTED PUBLISHING")
rclpy.spin(sim)

sim.destroy_node()
Expand Down

0 comments on commit be493a5

Please sign in to comment.