Skip to content

Commit

Permalink
fix typo
Browse files Browse the repository at this point in the history
Signed-off-by: Yoshihiro Kogure <[email protected]>
  • Loading branch information
YoshihiroKogure committed Oct 23, 2024
1 parent 2835fb7 commit 8b76f11
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -460,13 +460,13 @@ def __init__(self):
self.get_parameter("COLLECTING_DATA_A_MAX").get_parameter_value().double_value,
)

self.collectig_data_min_n_v = max([np.digitize(collecting_data_min_v, self.v_bins) - 1, 0])
self.collectig_data_max_n_v = (
self.collecting_data_min_n_v = max([np.digitize(collecting_data_min_v, self.v_bins) - 1, 0])
self.collecting_data_max_n_v = (
min([np.digitize(collecting_data_max_v, self.v_bins) - 1, self.num_bins_v - 1]) + 1
)

self.collectig_data_min_n_a = max([np.digitize(collecting_data_min_a, self.v_bins) - 1, 0])
self.collectig_data_max_n_a = (
self.collecting_data_min_n_a = max([np.digitize(collecting_data_min_a, self.v_bins) - 1, 0])
self.collecting_data_max_n_a = (
min([np.digitize(collecting_data_max_a, self.v_bins) - 1, self.num_bins_a - 1]) + 1
)

Expand Down Expand Up @@ -550,8 +550,8 @@ def get_target_velocity(self, nearestIndex):
(-1 + N_V, -3 + N_A),
]

for i in range(self.collectig_data_min_n_v, self.collectig_data_max_n_v):
for j in range(self.collectig_data_min_n_a, self.collectig_data_max_n_a):
for i in range(self.collecting_data_min_n_v, self.collecting_data_max_n_v):
for j in range(self.collecting_data_min_n_a, self.collecting_data_max_n_a):
if (i, j) not in exclude_idx_list:
if (
min_num_data - min_data_num_margin
Expand Down

0 comments on commit 8b76f11

Please sign in to comment.