Skip to content

Commit 835939a

Browse files
committed
Fixed some small typos
1 parent e1ab76a commit 835939a

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

GEMstack/onboard/perception/AgentTracker.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
# assigns pedestrians the same id
2-
# calculates velocity
1+
from typing import Dict
2+
33

44
class AgentTracker():
55
"""Associates and tracks AgentState agents.
@@ -33,7 +33,7 @@ def __convert_to_start_frame(self):
3333
# you can ignore this function akul
3434
pass
3535

36-
def __agents_overlap(ped1, ped2) -> bool:
36+
def __agents_overlap(self, ped1, ped2) -> bool:
3737
"""Determines if two AgentState objects overlap.
3838
3939
returns true if they overlap, false if not

GEMstack/onboard/perception/IdTracker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ class IdTracker():
44
def __init__(self):
55
self.__ped_id = 0
66

7-
def get_new_ped_id() -> int:
7+
def get_new_ped_id(self) -> int:
88
"""Returns a unique pedestrian id
99
"""
1010
assigned_id = self.__id

GEMstack/onboard/perception/pedestrian_detection.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ def update_object_states(track_result, flattened_pedestrians_3d_pts: list[np.nda
150150
# Update Current AgentStates
151151
self.current_agents = [
152152
AgentState(
153-
track_id = track_ids[ind]
153+
track_id = track_ids[ind],
154154
pose=ObjectPose(t=0,obj_centers[0],obj_centers[1],obj_centers[2],yaw=0,pitch=0,roll=0,frame=ObjectFrameEnum.CURRENT),
155155
# (l, w, h)
156156
# TODO: confirm (z -> l, x -> w, y -> h)

0 commit comments

Comments
 (0)