-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update leg_detector to OpenCV3 (#53)
* [kinetic] Update Travis config to run on Ubuntu 16.04 via Docker. * [test] Missing dependency. * [test] Cleaner namespace assignment. [face_detector][test common] Fix warning in .launch format. Fix namespace in testcases. Increase retry. .bag-based perceptional tests are hard to deterministic, so it makes sense to do this. Set param use_sim_time. [face_detector][test] hztest can be used for measureing no publishment. hzerror is not needed in that case. [face_detector][test] Specify test name. Pass all args. [face_detector][test] pass_all_args might require all args kept out of include tag. [face_detector][test] Specify test-name. [face_detector][test] Disable all tests other than rgbd. I couldn't figure out how to use launches other than face_detector.rgbdlaunch, after hours of trial on local machine. I leave that up to someone else. [face_detector][test] Detection using rgbd works with this config. [face_detector][test] Shorter test duration (bag files are less than 7 seconds). [face_detector][test] Shorter test_duration. We only need a second or so as long as we can confirm the designated topic is being published. [face_detector][test] rosbag play with clock and loop option. * [face_detector] an obtuse fix to hardcoded path for Xenial with OpenCV 3.1.0. * [face_detector][test common] Use newly introduced publishtest. Since the publish rate of the detected face varies every second because one of the persons in the bag file is moving, [publishtest](http://wiki.ros.org/rostest/Nodes#publishtest) should suit the best in this case. [face_detector][test common] Enable substitution in rosparam tag. * Fix CvMat change in OpenCV3 The cv::ml package has been rewritten. I just changed the code to accomodate the new api, maybe this does not conform to the way the new cv::ml should be used... * Fix missing fuzzy prediction from opencv2 In opencv3 the predict_prob method was removed from cv::ml::RTrees. * Remove dependency on people_msgs generation The dependency on the people_msgs package should be enough. This removes warnings for the leg_detector and people_tracking_filter when building with catkin_make_isolated and catkin build. * Revert "Remove no build packages from metapackage." This reverts commit 0bda254. * Save Isaac from getting emails about failed builds. Isaac Saito has been working hard to make the Travis CI work with Kinetic. Removing his email from ravis.yml, to save his inbox from errors due to other issues. * Update hardcoded location of opencv Version changed to 3.2.0, unfortunately we need to hardcode the location for now.
- Loading branch information
Showing
20 changed files
with
122 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,19 @@ | ||
sudo: required | ||
dist: trusty | ||
# Force travis to use its minimal image with default Python settings | ||
language: generic | ||
# This config file for Travis CI utilizes ros-industrial/industrial_ci package. | ||
# For more info for the package, see https://github.com/ros-industrial/industrial_ci/blob/master/README.rst | ||
sudo: required | ||
dist: trusty | ||
language: generic | ||
compiler: | ||
- gcc | ||
env: | ||
global: | ||
- CATKIN_WS=~/catkin_ws | ||
- CATKIN_WS_SRC=${CATKIN_WS}/src | ||
matrix: | ||
- CI_ROS_DISTRO="indigo" | ||
# - CI_ROS_DISTRO="jade" | ||
install: | ||
- sudo sh -c 'echo "deb http://packages.ros.org/ros/ubuntu trusty main" > /etc/apt/sources.list.d/ros-latest.list' | ||
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add - | ||
- sudo apt-get update -qq | ||
- sudo apt-get install -qq -y python-rosdep python-catkin-tools | ||
- sudo rosdep init | ||
- rosdep update | ||
# Use rosdep to install all dependencies (including ROS itself) | ||
- rosdep install --from-paths ./ -i -y --rosdistro $CI_ROS_DISTRO | ||
- USE_DEB=true ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros/ubuntu | ||
- USE_DEB=true ROS_DISTRO="kinetic" ROS_REPOSITORY_PATH=http://packages.ros.org/ros-shadow-fixed/ubuntu | ||
- ROS_DISTRO="kinetic" PRERELEASE=true | ||
matrix: | ||
allow_failures: | ||
- env: ROS_DISTRO="kinetic" PRERELEASE=true | ||
before_script: | ||
- git clone https://github.com/ros-industrial/industrial_ci.git .ci_config | ||
script: | ||
- source /opt/ros/$CI_ROS_DISTRO/setup.bash | ||
- mkdir -p $CATKIN_WS_SRC | ||
- ln -s $TRAVIS_BUILD_DIR $CATKIN_WS_SRC | ||
- cd $CATKIN_WS | ||
- catkin init | ||
# Enable install space | ||
#- catkin config --install | ||
# Build [and Install] packages | ||
- catkin build --limit-status-rate 0.1 --no-notify -DCMAKE_BUILD_TYPE=Release | ||
# Build tests | ||
- catkin build --limit-status-rate 0.1 --no-notify --make-args tests | ||
# Run tests | ||
- catkin run_tests | ||
- .ci_config/travis.sh |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
classifier_filename: /usr/share/opencv/haarcascades/haarcascade_frontalface_alt.xml | ||
classifier_filename: /opt/ros/kinetic/share/OpenCV-3.2.0-dev/haarcascades/haarcascade_frontalface_alt.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<launch> | ||
<arg name="expected_success" value="false" /> | ||
<arg name="testnode_name" default="hztest_action_rgbd_false" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector_action.rgbd.launch" /> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml"> | ||
<arg name="expected_success" value="false" /> | ||
</include> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<launch> | ||
<arg name="testnode_name" default="hztest_action_rgbd_true" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector_action.rgbd.launch" /> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml" /> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<launch> | ||
<arg name="expected_success" value="false" /> | ||
<arg name="testnode_name" default="hztest_action_wide_false" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector_action.wide.launch"/> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml"> | ||
<arg name="expected_success" value="false" /> | ||
</include> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,10 @@ | ||
<launch> | ||
<arg name="expected_success" value="false" /> | ||
<arg name="testnode_name" default="hztest_action_wide_true" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector_action.wide.launch"/> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml" /> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,34 @@ | ||
<launch> | ||
<arg name="expected_success" default="true" /> | ||
<arg name="hz" default="30.0" /> | ||
<arg name="hztest_duration" default="2.0" /> | ||
<arg name="hz_error" default="29.9" /> | ||
<arg name="RETRY_TEST" default="5" /> | ||
<arg name="testnode_name" default="hztest1" /> | ||
<arg name="topicname_hztest" default="face_detector/people_tracker_measurements_array" /> | ||
|
||
<param name ="use_sim_time" value="true" /> | ||
|
||
<group unless="$(arg expected_success)"> | ||
<node pkg="rosbag" type="play" name="play" args="-r 0.5 $(find face_detector)/test/face_detector_noface_test_diamondback.bag"/> | ||
<param name="hztest1/hz" value="0.0" /> | ||
<node pkg="rosbag" type="play" name="play" args="--clock -l -r 0.5 $(find face_detector)/test/face_detector_noface_test_diamondback.bag"/> | ||
|
||
<test test-name="hztest_noface_$(arg testnode_name)" pkg="rostest" type="hztest" name="$(arg testnode_name)" retry="$(arg RETRY_TEST)"> | ||
<param name="topic" value="face_detector/people_tracker_measurements_array" /> | ||
<param name="hz" value="0.0" /> | ||
<param name="test_duration" value="$(arg hztest_duration)" /> | ||
</test> | ||
</group> | ||
<group if="$(arg expected_success)"> | ||
<node pkg="rosbag" type="play" name="play" args="-r 0.5 $(find face_detector)/test/face_detector_withface_test_diamondback.bag"/> | ||
<param name="hztest1/hz" value="30.0" /> | ||
<param name="hztest1/hzerror" value="29.9" /> | ||
<node pkg="rosbag" type="play" name="play" args="--clock -l -r 0.5 $(find face_detector)/test/face_detector_withface_test_diamondback.bag"/> | ||
|
||
<test pkg="rostest" type="publishtest" | ||
test-name="pubtest_detectedface" name="pubtest_detectedface" retry="$(arg RETRY_TEST)"> | ||
<rosparam subst_value="True"> | ||
topics: | ||
- name: $(arg topicname_hztest) | ||
timeout: 5 | ||
negative: False | ||
</rosparam> | ||
</test> | ||
</group> | ||
|
||
<param name="hztest1/topic" value="face_detector/people_tracker_measurements_array" /> | ||
<param name="hztest1/test_duration" value="15.0" /> | ||
<test test-name="hztest_test" pkg="rostest" type="hztest" name="hztest1" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<launch> | ||
<arg name="expected_success" value="false" /> | ||
<arg name="testnode_name" default="hztest_narrow_stereo_false" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector.narrow.launch"/> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml"> | ||
<arg name="expected_success" value="false" /> | ||
</include> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<launch> | ||
<arg name="testnode_name" default="hztest_narrow_stereo_true" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector.narrow.launch"/> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml" /> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
<launch> | ||
<arg name="expected_success" value="false" /> | ||
<arg name="testnode_name" default="hztest_rgbd_false" /> | ||
<arg name="topicname_hztest" default="/face_detector/faces_cloud" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector.rgbd.launch"/> | ||
<include file="$(find face_detector)/launch/face_detector.rgbd.launch"> | ||
<arg name="camera" value="wide_stereo" /> | ||
<arg name="rgb_ns" value="right" /> | ||
<arg name="image_topic" value="image_raw" /> | ||
<arg name="depth_ns" value="right" /> | ||
<arg name="depth_topic" value="image_raw" /> | ||
</include> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml"> | ||
<arg name="expected_success" value="false" /> | ||
</include> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,18 @@ | ||
<launch> | ||
<arg name="hz" default="500.0" /> | ||
<arg name="hz_error" default="499.9" /> | ||
<arg name="testnode_name" default="hztest_rgbd_true" /> | ||
<arg name="topicname_hztest" default="/face_detector/faces_cloud" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector.rgbd.launch"/> | ||
<include file="$(find face_detector)/launch/face_detector.rgbd.launch"> | ||
<arg name="camera" value="wide_stereo" /> | ||
<arg name="rgb_ns" value="right" /> | ||
<arg name="image_topic" value="image_raw" /> | ||
<arg name="depth_ns" value="right" /> | ||
<arg name="depth_topic" value="image_raw" /> | ||
</include> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml" /> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<launch> | ||
<arg name="expected_success" value="false" /> | ||
<arg name="testnode_name" default="hztest_wide_stereo_false" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector.wide.launch"/> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml"> | ||
<arg name="expected_success" value="false" /> | ||
</include> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,9 @@ | ||
<launch> | ||
<arg name="testnode_name" default="hztest_wide_stereo_true" /> | ||
|
||
<node ns="wide_stereo" pkg="stereo_image_proc" type="stereo_image_proc" name="stereo" /> | ||
|
||
<include file="$(find face_detector)/launch/face_detector.wide.launch"/> | ||
|
||
<include file="$(find face_detector)/test/common_rtest.xml" /> | ||
<include file="$(find face_detector)/test/common_rtest.xml" pass_all_args="true" /> | ||
</launch> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters