Skip to content

Commit

Permalink
bugfix: PerceiveReachablePosition反复跳变问题
Browse files Browse the repository at this point in the history
  • Loading branch information
PinkGranite committed Apr 13, 2024
1 parent e13e776 commit 0bb4df1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pycityagent/brain/sence.py
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ async def PerceiveReachablePosition(self, radius:int=None) -> Optional[list[dict
longlat = self._agent._simulator.map.xy2lnglat(x=x, y=y)
type = self._lane_type_mapping.get(lane['type'], 'unspecified')
positions += [{'lane_id': lane_id,
's': neg_s,
's': pos_s,
'xy': (x, y),
'longlat': longlat,
'type': type}]
Expand Down

0 comments on commit 0bb4df1

Please sign in to comment.