-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit
More file actions
56 lines (43 loc) · 1.17 KB
/
Copy pathedit
File metadata and controls
56 lines (43 loc) · 1.17 KB
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
task3 limits
# task3
pos_low=[0.25, -0.25, 1.0],
pos_high=[0.55, 0.25, 1.35],
task3 side view camera
eef_pos_for_active_camera = np.array([0.4, -0.8, 1.4])
n = random.uniform(0, 0.1)
n = round(n, 2)
print in murm.py
obs_processor check in murm version
action = np.clip(action[0], a_min=-1, a_max=1)
if gripper >= 0:
gripper = 1
else:
gripper = -1
#print('gripper',gripper)
IN ROLLOUT FUNCTION
gripper = a[-1]
if gripper >= 0:
gripper = 1
else:
gripper = -1
a[-1] = gripper
# print('action', a)
elif x.size == 153 or x.size == 103 or y.size == 153 or y.size == 103:
success = []
if x.size == 153:
num = 153
else:
num = 103
for i in range(num):
p = [int(x[i])]
# print('p', p)
success = np.append(success, p, axis=0)
# print(success.size, success)
success1 = []
for i in range(num):
q = [int(y[i])]
# print('q', q)
success1 = np.append(success1, q, axis=0)
# print(success1.size, success1)
reward = success + success1 - 1
state_env = ClipAction(state_env)