Skip to content

add_agent NPC error #65

@xiejingjacob

Description

@xiejingjacob

When I run the quickstart/08-create-npc.py

I got errors

Python API Quickstart #8: Creating various NPCs

Traceback (most recent call last):

File "./quickstart/08-create-npc.py", line 40, in

npc = sim.add_agent("Sedan", lgsvl.AgentType.NPC)

File "/home/xj/PythonAPI/lgsvl/utils.py", line 23, in new_f

return f(*args, **kwargs)

File "/home/xj/PythonAPI/lgsvl/simulator.py", line 164, in add_agent

uid = self.remote.command("simulator/add_agent", args)

File "/home/xj/PythonAPI/lgsvl/remote.py", line 69, in command

raise Exception(data["error"])

Exception: Object reference not set to an instance of an object

running in ubuntu20.04

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions