Skip to content

Commit

Permalink
Fix for noetic linter
Browse files Browse the repository at this point in the history
  • Loading branch information
pazeshun committed Aug 17, 2023
1 parent a728feb commit 3a28f61
Show file tree
Hide file tree
Showing 10 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def _publish_msg(self, event):
self.larm_pub.publish(self.larm_msg)
self.rarm_pub.publish(self.rarm_msg)


if __name__ == '__main__':
rospy.init_node('work_order_publisher')
work_order_publisher = WorkOrderPublisher()
Expand Down
1 change: 1 addition & 0 deletions jsk_2016_01_baxter_apc/node_scripts/output_json_pick.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ def update_data(self):
is_updated = True
return is_updated


if __name__ == '__main__':
rospy.init_node('output_json_pick')
ojp = OutputJsonPick()
Expand Down
1 change: 1 addition & 0 deletions jsk_2016_01_baxter_apc/node_scripts/output_json_stow.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def update_data(self):
is_updated = True
return is_updated


if __name__ == '__main__':
rospy.init_node('output_json_stow')
ojs = OutputJsonStow()
Expand Down
1 change: 1 addition & 0 deletions jsk_apc2016_common/node_scripts/publish_bin_tf.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ def bin_info_array_to_bbox_dict(self, bin_info_array):
bbox_dict[bin_.name] = bin_.bbox
return bbox_dict


if __name__ == '__main__':
rospy.init_node('sib_publish_tf')
pub_tf = PublishTF()
Expand Down
1 change: 1 addition & 0 deletions jsk_apc2016_common/node_scripts/tf_bbox_to_mask.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ def project_points(self, points, camera_model):
[point.point.x, point.point.y, point.point.z]))
return projected_points


if __name__ == '__main__':
rospy.init_node('tf_bbox_to_mask')
tfmask = TFBboxToMask()
Expand Down
1 change: 1 addition & 0 deletions jsk_apc2016_common/scripts/generate_interface_json.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,6 +164,7 @@ def generateBinContents():

return bin_contents


# Do the work for the picking task
# ------------------------------------------------------------------------------
# Generate bin contents for the pick pod
Expand Down
5 changes: 3 additions & 2 deletions jsk_arc2017_common/node_scripts/candidates_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,8 +63,8 @@ def _timer_cb(self, event):
contents = tote_contents
else:
return
candidates_fixed = [l for l in self.label_names
if l.startswith('__')]
candidates_fixed = [ln for ln in self.label_names
if ln.startswith('__')]
candidates = candidates_fixed + contents
label_list = [self.label_names.index(x) for x in candidates]
label_list = sorted(label_list)
Expand All @@ -79,6 +79,7 @@ def _timer_cb(self, event):
msg.header.stamp = rospy.Time.now()
self.pub.publish(msg)


if __name__ == '__main__':
rospy.init_node('candidates_publisher')
candidates_publisher = CandidatesPublisher()
Expand Down
1 change: 1 addition & 0 deletions jsk_arc2017_common/node_scripts/grasp_style_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ def _get_grasp_style(self, req):
res.success = True
return res


if __name__ == "__main__":
rospy.init_node('grasp_style_server')
server = GraspStyleServer()
Expand Down
1 change: 1 addition & 0 deletions jsk_arc2017_common/node_scripts/work_order_publisher.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ def _publish_msg(self, event):
self.larm_pub.publish(self.larm_msg)
self.rarm_pub.publish(self.rarm_msg)


if __name__ == '__main__':
rospy.init_node('work_order_publisher')
work_order_publisher = WorkOrderPublisher()
Expand Down
2 changes: 1 addition & 1 deletion jsk_arc2017_common/python/jsk_arc2017_common/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def get_label_names():

def get_object_names():
label_names = get_label_names()
return [l for l in label_names if not l.startswith('__')]
return [ln for ln in label_names if not ln.startswith('__')]


def get_known_object_names():
Expand Down

0 comments on commit 3a28f61

Please sign in to comment.