Skip to content
Snippets Groups Projects
Commit 8c9cb0f5 authored by sacardoz's avatar sacardoz
Browse files

oops

parent a07e30e6
No related branches found
No related tags found
2 merge requests!21Major changes. convert nuplan devkit to handle occlusions for project,!8Shea multiagent rules
......@@ -197,7 +197,7 @@ class MLPlannerAgents(AbstractObservation):
history_input = self._build_history_input(agent_token, agent_data['ego_state'], history)
if agent_data['occlusion'] is not None:
planner_input = agent_data['occlusion'].occlude_input(history_input)
history_input = agent_data['occlusion'].occlude_input(history_input)
planner_input = PlannerInput(iteration=iteration, history=history_input, traffic_light_data=traffic_light_data)
trajectory = agent_data['planner'].compute_trajectory(planner_input)
......@@ -292,9 +292,9 @@ class MLPlannerAgents(AbstractObservation):
# Convert agent state to a corresponding "ego state" object, or pull it from cache if already computed.
if matched_agent is None:
faux_ego_observation = deepcopy(current_state)
faux_ego_observation._time_point = ego_state.time_point
faux_ego_observation._time_point = deepcopy(ego_state.time_point)
else:
faux_ego_observation = self._build_ego_state_from_agent(matched_agent, ego_state.time_point)
faux_ego_observation = self._build_ego_state_from_agent(matched_agent, deepcopy(ego_state.time_point))
# Rebuild timestep and buffer - creating a new observations object with old ego appended.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment