Skip to content

Commit a789fd1

Browse files
committed
freeze for data collection- ws
1 parent a5e8ea7 commit a789fd1

File tree

5 files changed

+5
-8
lines changed

5 files changed

+5
-8
lines changed

cfg/panda.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ panda:
1414
# neutral_joint_angles:
1515
# [0., -0.3135, 0., -2.515, 0., 2.226, 0.87]
1616
neutral_joint_angles: [0.0, -0.524, 0.0, -2.617, 0.0, 2.094, 0.0]
17-
17+
# neutral_joint_angles: [-0.16172688795543, 0.446162338187715, -0.211960327838597, -2.49406191371722, -0.0575494087272164, 2.94740106578862, 0.622476284949879]
1818
limb_joint_names: [
1919
'panda_link0',
2020
'panda_link1',

demos/demo.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,6 @@ def world_type(self):
7777
def get_action_list(self):
7878
raise NotImplementedError
7979

80-
def run(self):
81-
raise NotImplementedError
82-
8380
def save_data(self):
8481
fpath = "demos/results/{}.npz".format(self.demo_name)
8582
np.savez(fpath, states=self.states,
@@ -134,7 +131,7 @@ def run(self):
134131

135132
def step_through_demo(self):
136133
for i, goal_pose in enumerate(self.goal_poses):
137-
134+
print(self.env.robot_interface.ee_position)
138135
# Get action corresponding to test_fn and goal pose
139136
action= self.get_action(goal_pose, self.get_state())
140137
action_kwargs = self.get_action_kwargs(action)

demos/demo_control_cfg.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Cfg file for Demo control environment
22
world:
33
type: 'Bullet' #'Bullet' or 'Real'
4-
robot: 'sawyer'
4+
robot: 'panda'
55
controlType: 'EEImpedance'
66
data_dir: 'data'
77

demos/osc_demo.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def get_action(self, goal_pose, current_pose):
157157
as quaternion.
158158
"""
159159
if self.test_fn =="move_ee_delta":
160-
action = get_delta(goal_pose, current_pose)
160+
action = self.get_delta(goal_pose, current_pose)
161161
elif self.test_fn =="set_ee_pose":
162162
action = goal_pose
163163
else:

perls2/robots/real_panda_interface.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def reset(self):
6363

6464
self.redisClient.mset(reset_cmd)
6565
# Wait for reset to be read by contrl interface.
66-
time.sleep(self.RESET_TIMEOUT)
66+
# time.sleep(self.RESET_TIMEOUT)
6767
start = time.time()
6868

6969
while (self.redisClient.get(ROBOT_RESET_COMPL_KEY) != b'True' and (time.time() - start < self.RESET_TIMEOUT)):

0 commit comments

Comments
 (0)