Skip to content

Commit

Permalink
Merge pull request #2768 from pazeshun/fix-tests
Browse files Browse the repository at this point in the history
Fix docker & travis
  • Loading branch information
pazeshun authored Aug 29, 2023
2 parents 3f19db4 + dc41c6a commit 60a4688
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 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
5 changes: 4 additions & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ RUN cd ~ && \
# https://github.com/jsk-ros-pkg/jsk_travis/blob/0.5.26/travis.sh#L295-L300
ARG ROS_DISTRO
RUN if [ ${ROS_DISTRO} = "indigo" ] || [ ${ROS_DISTRO} = "kinetic" ]; then \
rm /etc/ros/rosdep/sources.list.d/20-default.list; \
rm /etc/ros/rosdep/sources.list.d/20-default.list && \
wget https://gist.githubusercontent.com/cottsay/b27a46e53b8f7453bf9ff637d32ea283/raw/476b3714bb90cfbc6b8b9d068162fc6408fa7f76/30-xenial.list -O /etc/ros/rosdep/sources.list.d/30-xenial.list; \
fi

Expand All @@ -98,6 +98,9 @@ RUN if [ ${TESTING} = "true" ] ; then \
cd ~/ros/${ROS_DISTRO} && \
if [ ${ROS_DISTRO} = "indigo" ]; then \
catkin build jsk_apc2015_common jsk_apc2016_common jsk_arc2017_common jsk_2015_05_baxter_apc jsk_2016_01_baxter_apc jsk_arc2017_baxter selective_dualarm_stowing sphand_driver sphand_driver_msgs vl53l0x_mraa_ros baxtergv6_apc2016;\
elif [ ${ROS_DISTRO} = "kinetic" ]; then \
catkin config --blacklist test_catkin_virtualenv test_catkin_virtualenv_py3_isolated test_catkin_virtualenv_inherited && \
catkin build; \
else \
catkin build; \
fi; \
Expand Down

0 comments on commit 60a4688

Please sign in to comment.