Skip to content

Commit

Permalink
Fix area initialize response
Browse files Browse the repository at this point in the history
  • Loading branch information
Ruishenl committed Nov 29, 2023
1 parent c059a5b commit 9910f6e
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions invertedai/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -500,11 +500,10 @@ def inside_fov(center: Point, initialize_fov: float, point: Point) -> bool:
file_path = f"{birdview_path}-{(area_center.x, area_center.y)}.jpg"
response.birdview.decode_and_save(file_path)

return invertedai.api.InitializeResponse(
recurrent_states=agent_rs,
agent_states=agent_states,
agent_attributes=agent_attributes)

response.recurrent_states=agent_rs
response.agent_states=agent_states
response.agent_attributes
return response

class APITokenAuth(AuthBase):
def __init__(self, api_token):
Expand Down

0 comments on commit 9910f6e

Please sign in to comment.