Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Help Request] Help request title #2133

Closed
DOPEMANdd opened this issue Jan 5, 2024 · 2 comments · Fixed by #2134
Closed

[Help Request] Help request title #2133

DOPEMANdd opened this issue Jan 5, 2024 · 2 comments · Fixed by #2134
Labels
help wanted Extra attention is needed

Comments

@DOPEMANdd
Copy link

DOPEMANdd commented Jan 5, 2024

High Level Description

Traceback (most recent call last):
  File "test.py", line 114, in <module>
    main(args)
  File "test.py", line 77, in main
    env_input = observer(observations['Agent_0'])
  File "/data/zhangdi/smart_master/SMARTS/Predictive-Decision-main/observation.py", line 137, in __call__
    neighbors_obs, _ = self._env.observe_from(neighbor_ids,self.neighbor_interface)
  File "/data/zhangdi/smart_master/SMARTS/smarts/core/smarts.py", line 978, in observe_from
    return self.sensor_manager.observe_batch(
  File "/data/zhangdi/smart_master/SMARTS/smarts/core/sensor_manager.py", line 151, in observe_batch
    ) = Sensors.observe_vehicle(
  File "/data/zhangdi/smart_master/SMARTS/smarts/core/sensors/__init__.py", line 494, in observe_vehicle
    safe_obs, dones, updated_safe_sensors = cls.process_serialization_safe_sensors(
  File "/data/zhangdi/smart_master/SMARTS/smarts/core/sensors/__init__.py", line 282, in process_serialization_safe_sensors
    plan = sensor_state.get_plan(sim_local_constants.road_map)
AttributeError: 'NoneType' object has no attribute 'get_plan'

Version

latest

Operating System

No response

Problems

No response

@DOPEMANdd DOPEMANdd added the help wanted Extra attention is needed label Jan 5, 2024
@Gamenot
Copy link
Collaborator

Gamenot commented Jan 5, 2024

Hello @DOPEMANdd, I am unable to debug what the issue is without more information. I am instead adding in some logging and a default if the sensor state does not exist.

@Gamenot
Copy link
Collaborator

Gamenot commented Jan 8, 2024

@DOPEMANdd fyi, this is fixed on master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants