Skip to content

Commit 47db764

Browse files
committed
Update move_to_pose
1 parent 89749b2 commit 47db764

File tree

1 file changed

+0
-5
lines changed

1 file changed

+0
-5
lines changed

Control/move_to_pose/move_to_pose.py

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@ def __init__(self, Kp_rho, Kp_alpha, Kp_beta):
4040
self.Kp_rho = Kp_rho
4141
self.Kp_alpha = Kp_alpha
4242
self.Kp_beta = Kp_beta
43-
self.direction = 0 # 0: not initialized, 1: forward, -1: backward
44-
45-
def reset_direction(self):
46-
self.direction = 0
4743

4844
def calc_control_command(self, x_diff, y_diff, theta, theta_goal):
4945
"""
@@ -111,7 +107,6 @@ def calc_control_command(self, x_diff, y_diff, theta, theta_goal):
111107

112108

113109
def move_to_pose(x_start, y_start, theta_start, x_goal, y_goal, theta_goal):
114-
controller.reset_direction()
115110
x = x_start
116111
y = y_start
117112
theta = theta_start

0 commit comments

Comments
 (0)