Skip to content

Commit f26c4d4

Browse files
committed
minor tidy up for release
1 parent f9e7e46 commit f26c4d4

2 files changed

Lines changed: 2 additions & 12 deletions

File tree

src/benchbot_robot_controller.py

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
CONNS = [CONN_API_TO_ROS, CONN_ROS_TO_API, CONN_ROSCACHE_TO_API]
4141

4242
TIMEOUT_PREPARE = 120
43-
TIMEOUT_ROS_PING = 5
43+
TIMEOUT_ROS_PING = 20
4444
TIMEOUT_RUN = 120
4545

4646
VARIABLES = {
@@ -57,7 +57,6 @@
5757
'START_POSE':
5858
"self.config_env['start_pose']",
5959
'OBJECT_LABELS':
60-
# 'str(json.dumps([{"name": lbl.encode("ascii")} for lbl in self.config_env["object_labels"]]))'
6160
'str(json.dumps([{"name": lbl} for lbl in self.config_env["object_labels"]]))'
6261
}
6362

@@ -94,16 +93,8 @@ def __init__(self, config_robot, config_env, ros_subs, events=None):
9493
self.prepared = False
9594

9695
def _replace_variables(self, text):
97-
# print("TEXT: ", text)
98-
# print("SOMETHING: ", self.config_env["object_labels"])
99-
# print("SOMETHING ELSE: ", [{"name": lbl.encode("ascii")} for lbl in self.config_env["object_labels"]])
100-
# print("SOMETHING MORE: ", json.dumps([{"name": lbl} for lbl in self.config_env["object_labels"]]))
10196
for k, v in VARIABLES.items():
102-
# print("KEY: ", k)
103-
# print("EVAL")
104-
# print(eval(v))
10597
text = text.replace("$%s" % k, str(eval(v)))
106-
# print("UPDATED TEXT:", text)
10798
return text
10899

109100
def destroy(self):

src/robot_callbacks.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,6 @@ def _define_initial_pose(controller):
3636
controller.tf_buffer.lookup_transform(
3737
controller.config['robot']['global_frame'],
3838
controller.config['robot']['robot_frame'], rospy.Time()))
39-
print("INITIAL POSE Robot Callbacks: " +str(controller.state['initial_pose']))
4039

4140

4241
def _get_noisy_pose(controller, child_frame):
@@ -189,7 +188,7 @@ def create_pose_list(data, controller):
189188
if 'initial_pose' in controller.config['robot']['poses']:
190189
tfs['initial_pose'] = controller.state['initial_pose']
191190

192-
# x REMOVE HACK FOR FIXING CAMERA NAME!!!
191+
# TODO REMOVE HACK FOR FIXING CAMERA NAME!!!
193192
return {
194193
'camera' if 'camera_left' in k else k: {
195194
'parent_frame': controller.config['robot']['global_frame'],

0 commit comments

Comments
 (0)