Skip to content

Commit

Permalink
following a big tracjectorie
Browse files Browse the repository at this point in the history
  • Loading branch information
jardeldyonisio committed Aug 11, 2023
1 parent 9c9bd58 commit 87b8f6c
Show file tree
Hide file tree
Showing 2 changed files with 1,751 additions and 516 deletions.
3 changes: 1 addition & 2 deletions scripts/bug1_lognav.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def __init__(self):
self.read_points_from_file('/home/jardeldyonisio/lognav_ws/src/turtlebot3_teleop_recorder/scripts/recorded_points.txt')

def read_points_from_file(self, file_path):
self.goals = np.array([[]])
self.goals = np.array([[-2.0, -0.49]])
with open(file_path, 'r') as f:
for line in f:
x, y = line.strip().split()
Expand Down Expand Up @@ -70,7 +70,6 @@ def odom_callback(self, data: Odometry):
msg.linear.x = .0
self.goals = np.delete(self.goals, 0, 0)
self.cmd_vel_pub.publish(msg)
time.sleep(3)
rospy.loginfo(self.goals)
if len(self.goals) == 0:
rospy.loginfo("Objetivos concluídos")
Expand Down
Loading

0 comments on commit 87b8f6c

Please sign in to comment.