Skip to content

Commit cb8e17e

Browse files
committed
Windows Version
1 parent 611f443 commit cb8e17e

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.idea
2-
venv
2+
.venv
3+
*.pyc

agent/agent_interfaces_connector.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,11 @@
33

44
import agent.interfaces_python_data_structs as interface
55

6+
lib_file = "agent/agent_lib.dll"
67

78
class AgentConnector():
8-
def __init__(self, dll_file):
9-
self.agentlib = ct.CDLL(dll_file)
9+
def __init__(self):
10+
self.agentlib = ct.CDLL(lib_file)
1011
# /* ------------------------------------ CLIENT FUNCTIONS ------------------------------------ */
1112
# Fuction for testing library loading
1213
# void test_lib_agent();

agent/agent_lib.dll

146 KB
Binary file not shown.

pydrivingsim/agent.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@
1010

1111
from pydrivingsim import World, Vehicle, TrafficLight
1212

13-
lib_file = "agent/libagent.dylib"
14-
c = agent_lib.AgentConnector(lib_file)
13+
14+
c = agent_lib.AgentConnector()
1515

1616
# Define types
1717
type_integer_4 = ct.c_int32 * 4

requirements.txt

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
numpy==1.23.3
2+
pygame==2.1.2

0 commit comments

Comments
 (0)