-
Notifications
You must be signed in to change notification settings - Fork 1
/
nova_placement.py
96 lines (89 loc) · 2.66 KB
/
nova_placement.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
import constants as constant
from pythonosc import udp_client
import time
import os
time.sleep(15)
# Set up OSC
osc_client = udp_client.SimpleUDPClient(constant.LOCAL_IP, constant.VRC_PORT)
osc_client.send_message("/chatbox/input", ["Positioning...", True])
################################################################################################
# "The Black Cat" Positions: "Downstairs Bar" "Upstairs Bar" "Front Desk" "Downstairs Bar Back"
world = "The Black Cat"
position = "Downstairs Bar"
################################################################################################
def move_forward(time, speed=1):
osc_client.send_message("/input/MoveForward", speed)
time.sleep(time)
osc_client.send_message("/input/MoveForward", 0)
def look_right(time, speed=1):
osc_client.send_message("/input/LookRight", speed)
time.sleep(time)
osc_client.send_message("/input/LookRight", 0)
def look_left(time, speed=1):
osc_client.send_message("/input/LookLeft", speed)
time.sleep(time)
osc_client.send_message("/input/LookLeft", 0)
if world == "The Black Cat":
if position == "Downstairs Bar":
move_forward(3)
look_right(0.4)
move_forward(5.5)
look_left(0.4)
move_forward(4.5)
look_left(0.3)
move_forward(2.9)
look_right(0.2)
move_forward(0.5)
look_right(0.3)
move_forward(1.2)
look_right(0.33)
move_forward(0.3)
elif position == "Upstairs Bar":
move_forward(3)
look_right(0.4)
move_forward(5.5)
look_left(0.4)
move_forward(3.5)
look_right(0.45)
move_forward(4.3)
look_left(0.45)
move_forward(3.55)
look_right(0.45)
move_forward(1.7)
look_left(0.3)
move_forward(4)
look_left(0.3)
move_forward(1.8)
look_left(0.34)
move_forward(3.4)
look_right(0.5)
move_forward(1.5)
look_right(0.43)
move_forward(0.3)
elif position == "Front Desk":
move_forward(3)
look_right(0.4)
move_forward(1.3)
look_left(0.38)
move_forward(1.3)
look_left(0.45)
move_forward(1.4)
look_left(0.48)
move_forward(0.3)
elif position == "Downstairs Bar Back":
move_forward(3)
look_right(0.4)
move_forward(5.5)
look_left(0.4)
move_forward(4.5)
look_left(0.3)
move_forward(3.4)
look_left(0.15)
move_forward(1)
look_right(0.15)
move_forward(1)
look_right(0.15)
move_forward(1)
look_right(0.2)
move_forward(0.5)
look_left(0.4)