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 29, 2023
1 parent dd6b952 commit dc41c6a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,8 @@ def callback(self, imgmsg):

if self.pub_viz.get_num_connections() > 0:
n_fg_class = len(self.fg_class_names)
captions = ['{:d}: {:s}'.format(l, self.fg_class_names[l])
for l in labels]
captions = ['{:d}: {:s}'.format(lbl, self.fg_class_names[lbl])
for lbl in labels]
viz = chainer_mask_rcnn.utils.draw_instance_bboxes(
img, bboxes, labels + 1, n_class=n_fg_class + 1,
masks=masks, captions=captions)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,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
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,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

0 comments on commit dc41c6a

Please sign in to comment.