Skip to content

Commit f3a370e

Browse files
authored
Merge pull request #94 from cpaxton/fix-sp-segmenter-error
Fix sp segmenter error and add to travis
2 parents ebcbdbd + 6f8fc0d commit f3a370e

File tree

5 files changed

+18
-7
lines changed

5 files changed

+18
-7
lines changed

.travis.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ before_install:
6868
- sudo sh -c "echo \"deb http://packages.ros.org/ros/ubuntu $ROS_CI_DESKTOP main\" > /etc/apt/sources.list.d/ros-latest.list"
6969
- wget http://packages.ros.org/ros.key -O - | sudo apt-key add -
7070
# Do not build/test costar-perception: it requires OpenCV-nonfree, which is not automatically installed.
71-
- touch $CI_SOURCE_PATH/costar_perception/CATKIN_IGNORE
7271
- sudo apt-get update -qq
7372
- sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool python-catkin-tools ros-$ROS_DISTRO-catkin
73+
- sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
74+
- sudo apt-get update
75+
- sudo apt-get install libopencv-nonfree-dev
7476
# - sudo apt-get install -y ros-$ROS_DISTRO-fcl ros-$ROS_DISTRO-soem ros-$ROS_DISTRO-moveit-full liburdfdom-headers-dev ros-$ROS_DISTRO-control-msgs ros-$ROS_DISTRO-gazebo-ros-control ros-$ROS_DISTRO-python-orocos-kdl xdot ros-$ROS_DISTRO-ros-control ros-$ROS_DISTRO-universal-robot ros-$ROS_DISTRO-ur-msgs ros-$ROS_DISTRO-octomap-msgs ros-$ROS_DISTRO-object-recognition-msgs ros-$ROS_DISTRO-realtime-tools ros-$ROS_DISTRO-soem ros-$ROS_DISTRO-gazebo-plugins ros-$ROS_DISTRO-pcl-ros ros-$ROS_DISTRO-socketcan-interface ros-$ROS_DISTRO-rqt-gui ros-$ROS_DISTRO-rqt-gui-py ros-$ROS_DISTRO-position-controllers ros-$ROS_DISTRO-robot-state-publisher ros-$ROS_DISTRO-joint-state-controller ros-$ROS_DISTRO-robot-state-publisher ros-$ROS_DISTRO-joint-trajectory-controller ros-$ROS_DISTRO-openni2-launch
7577
- source /opt/ros/$ROS_DISTRO/setup.bash
7678
# Prepare rosdep to install dependencies.
@@ -85,6 +87,7 @@ install:
8587
- cd ~/costar_ws/src
8688
- git clone https://github.com/SalvoVirga/iiwa_stack.git
8789
- git clone https://github.com/ros-industrial/robotiq.git
90+
- git clone https://github.com/jhu-lcsr/ObjRecRANSAC.git
8891
- git clone https://github.com/jbohren/rqt_dot.git
8992
- git clone https://github.com/sniekum/ar_track_alvar.git
9093
- git clone https://github.com/sniekum/ar_track_alvar_msgs.git

costar_perception/sp_segmenter/CMakeLists.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@ OPTION(BUILD_USE_OBJRECRANSAC "Use ObjRecRANSAC" ON)
88
OPTION(BUILD_PYTHON_BINDING "Build Python Binding" OFF)
99
OPTION(BUILD_ENABLE_TRACKING "Build Enable Tracking Keypoints (EXPERIMENTAL)" OFF)
1010

11-
OPTION(BUILD_SCENE_PARSING_SUPPORT "Build with Scene Parsing Hypothesis Message (EXPERIMENTAL)" ON)
11+
OPTION(BUILD_SCENE_PARSING_SUPPORT
12+
"Build with Scene Parsing Hypothesis Message (EXPERIMENTAL)" OFF)
1213

1314
# Enable C++11
1415
include(CheckCXXCompilerFlag)

costar_perception/sp_segmenter/include/sp_segmenter/ros_semantic_segmentation.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ class RosSemanticSegmentation : public SemanticSegmentation
7070
void initializeSemanticSegmentationFromRosParam();
7171
void populateTFMap(std::vector<objectTransformInformation> all_poses);
7272

73-
#ifdef SCENE_PARSING
74-
objrec_hypothesis_msgs::AllModelHypothesis generateAllModelHypothesis() const;
7573
costar_objrec_msgs::DetectedObjectList last_object_list_;
7674
sensor_msgs::PointCloud2 last_segmented_cloud_;
75+
#ifdef SCENE_PARSING
76+
objrec_hypothesis_msgs::AllModelHypothesis generateAllModelHypothesis() const;
7777
bool getLastHypotheses (std_srvs::Empty::Request& request, std_srvs::Empty::Response& response);
7878
#endif
7979

costar_perception/sp_segmenter/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
<buildtool_depend>catkin</buildtool_depend>
4343

4444
<build_depend>costar_objrec_msgs</build_depend>
45-
<build_depend>objrecransac</build_depend>
45+
<build_depend>ObjRecRANSAC</build_depend>
4646
<build_depend>sensor_msgs</build_depend>
4747
<build_depend>geometry_msgs</build_depend>
4848
<build_depend>pcl_ros</build_depend>

install_indigo.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,19 +6,26 @@ mkdir -p costar_ws/src
66
cd ~/costar_ws
77
source /opt/ros/indigo/setup.bash
88
sudo apt-get update -qq
9+
10+
# Set up your basic deps
911
sudo apt-get install -y python-catkin-pkg python-rosdep python-wstool python-catkin-tools ros-$ROS_DISTRO-catkin
12+
13+
# Set up Opencv-nonfree
14+
sudo add-apt-repository --yes ppa:xqms/opencv-nonfree
15+
sudo apt-get update
16+
sudo apt-get install libopencv-nonfree-dev
17+
1018
catkin init
1119
cd ~/costar_ws/src
1220
git clone https://github.com/cpaxton/costar_stack.git
1321
git clone https://github.com/SalvoVirga/iiwa_stack.git
1422
git clone https://github.com/ros-industrial/robotiq.git
23+
git clone https://github.com/jhu-lcsr/ObjRecRANSAC.git
1524
git clone https://github.com/jbohren/rqt_dot.git
1625
git clone https://github.com/sniekum/ar_track_alvar.git
1726
git clone https://github.com/sniekum/ar_track_alvar_msgs.git
1827
git clone https://github.com/gt-ros-pkg/hrl-kdl.git
1928
git clone https://github.com/xqms/ur_modern_driver.git --branch thread_safety
2029
rosdep install -y --from-paths ./ --ignore-src --rosdistro $ROS_DISTRO
21-
echo "Ignore COSTAR_PERCEPTION until you have installed its dependencies."
22-
touch costar_stack/costar_perception/CATKIN_IGNORE
2330
catkin build --continue
2431
source ../devel/setup.bash

0 commit comments

Comments
 (0)