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

Problem adding NPC vehicle into the simulation #10

Open
AlamHasabie opened this issue Aug 24, 2022 · 1 comment
Open

Problem adding NPC vehicle into the simulation #10

AlamHasabie opened this issue Aug 24, 2022 · 1 comment

Comments

@AlamHasabie
Copy link

AlamHasabie commented Aug 24, 2022

Hi,

I'm trying to migrate from LGSVL to OSSDC. A quick run of this quickstart script (08-create-npc.py) produces the following error :
Python API Quickstart #8: Creating various NPCs Traceback (most recent call last): File "08-create-npc.py", line 38, in <module> sim.add_agent(name, lgsvl.AgentType.NPC, state) File "/Users/nurhasabie/Documents/lgsvl-venv/lib/python3.8/site-packages/lgsvl-2021.1-py3.8.egg/lgsvl/utils.py", line 23, in new_f File "/Users/nurhasabie/Documents/lgsvl-venv/lib/python3.8/site-packages/lgsvl-2021.1-py3.8.egg/lgsvl/simulator.py", line 164, in add_agent File "/Users/nurhasabie/Documents/lgsvl-venv/lib/python3.8/site-packages/lgsvl-2021.1-py3.8.egg/lgsvl/remote.py", line 69, in command Exception: Object reference not set to an instance of an object

It seems to be related to this issue : lgsvl/simulator#1336 .I've tried to add the missing NPCs and Pedestrians folder into both the AssetBundles and 2021.3-ossdc sim, but the issue does not resolve. Does anyone know how to resolve the problem ? Thanks !

@mslavescu
Copy link
Member

I update the zip files with extra assets, download them again and the scenario above should work:
https://github.com/OSSDC/OSSDC-SIM/releases/tag/OSSDC-SIM-v1.1

Here is a screenshots with the NPC after running "08-create-npc.py":
Screenshot 2022-09-07 183139

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants