Skip to content

Commit

Permalink
Vision library is now a ros package, so that catkin_make compiles eve…
Browse files Browse the repository at this point in the history
…rything.
  • Loading branch information
gstavrinos committed May 9, 2016
1 parent 38b8bd5 commit 4e5973b
Show file tree
Hide file tree
Showing 11 changed files with 82 additions and 21 deletions.
8 changes: 1 addition & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ their movement and physique(e.g. height).
* Input :
* RGB image
* RGB image difference
* depth image difference
* depth image
* depth image difference
* **ros_visual**
* Description: High level package to help launch all the nodes and automate the process, only contains launch files
Expand Down Expand Up @@ -70,13 +70,7 @@ their movement and physique(e.g. height).
* Copy this project in ```~/catkin_ws/src```
* Install Alglib (clustering for depth estimation), in case the stdafx.h file needed is not in /usr/include/
check where your system has stored it and add the directory in the CMAkeList.txt link_directories()
* Install the vision library

```
cd ~/catkin_ws/src/vision
cmake .
sudo make install
```
* Run in terminal:

```
Expand Down
4 changes: 3 additions & 1 deletion chroma/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ find_package(catkin REQUIRED COMPONENTS
)

find_package(OpenCV REQUIRED)
find_package(vision REQUIRED)

catkin_package()

Expand All @@ -22,6 +23,7 @@ include_directories(
/usr/include/
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${vision_INCLUDE_DIRS}
)


Expand All @@ -36,5 +38,5 @@ add_executable(chroma ${SRC_LIST})
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
libvision.so
${vision_LIBRARIES}
)
2 changes: 2 additions & 0 deletions chroma/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@
<!-- <test_depend>gtest</test_depend> -->
<buildtool_depend>catkin</buildtool_depend>

<build_depend>roscpp</build_depend>
<run_depend>roscpp</run_depend>

<!-- The export tag contains other, unspecified, tags -->
<export>
Expand Down
5 changes: 4 additions & 1 deletion depth/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ find_package(catkin REQUIRED COMPONENTS
)

find_package(OpenCV REQUIRED)
find_package(vision REQUIRED)

catkin_package()

Expand All @@ -25,6 +26,7 @@ include_directories(
/usr/include/
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${vision_INCLUDE_DIRS}
)

link_directories(
Expand All @@ -38,6 +40,7 @@ add_executable(depth ${SRC_LIST})
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
libvision.so
${vision_LIBRARIES}
#libvision.so
)

6 changes: 5 additions & 1 deletion depth/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,14 @@
<!-- <test_depend>gtest</test_depend> -->
<buildtool_depend>catkin</buildtool_depend>

<build_depend>roscpp</build_depend>
<build_depend>vision</build_depend>
<run_depend>roscpp</run_depend>
<run_depend>vision</run_depend>

<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->

</export>
</package>
</package>
4 changes: 3 additions & 1 deletion fusion/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ find_package(catkin REQUIRED COMPONENTS
)

find_package(OpenCV REQUIRED)
find_package(vision REQUIRED)

catkin_package()

Expand All @@ -25,6 +26,7 @@ include_directories(
/usr/include/
${catkin_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
${vision_INCLUDE_DIRS}
)

link_directories(
Expand All @@ -39,6 +41,6 @@ add_executable(fusion ${SRC_LIST})
target_link_libraries(${PROJECT_NAME}
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
libvision.so
${vision_LIBRARIES}
)

5 changes: 4 additions & 1 deletion fusion/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@
<!-- <test_depend>gtest</test_depend> -->
<buildtool_depend>catkin</buildtool_depend>

<build_depend>roscpp</build_depend>
<run_depend>roscpp</run_depend>


<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->

</export>
</package>
</package>
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<arg name="depth_out_dif_topic" default="/depth_proc/image_dif"/>
<arg name="project_path" default="$(find ros_visual)" />
<arg name="playback_topics" default="false"/>
<arg name="write_csv" default="true"/>
<arg name="write_csv" default="false"/>
<arg name="display" default="false"/>
<arg name="min_depth" default="0"/>
<arg name="max_depth" default="6000"/>
Expand Down
2 changes: 2 additions & 0 deletions ros_visual/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@
<!-- Use test_depend for packages you need only for testing: -->
<!-- <test_depend>gtest</test_depend> -->
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<run_depend>roscpp</run_depend>
<run_depend>chroma</run_depend>
<run_depend>depth</run_depend>
<run_depend>fusion</run_depend>
Expand Down
13 changes: 5 additions & 8 deletions vision/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ set(CMAKE_BUILD_TYPE Release)

find_package(OpenCV REQUIRED)

catkin_package(INCLUDE_DIRS include
LIBRARIES vision)

include_directories(
include
/usr/include/
Expand All @@ -29,12 +32,6 @@ target_link_libraries(${PROJECT_NAME}
alglib
)

install(TARGETS vision DESTINATION /usr/local/lib)
install(FILES ${HEADERS} DESTINATION include)






install(DIRECTORY include/${PROJECT_NAME}/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})

52 changes: 52 additions & 0 deletions vision/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
<?xml version="1.0"?>
<package>
<name>vision</name>
<version>0.0.0</version>
<description>The vision package</description>

<!-- One maintainer tag required, multiple allowed, one person per tag -->
<!-- Example: -->
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> -->
<maintainer email="[email protected]">dimitris</maintainer>


<!-- One license tag required, multiple allowed, one license per tag -->
<!-- Commonly used license strings: -->
<!-- BSD, MIT, Boost Software License, GPLv2, GPLv3, LGPLv2.1, LGPLv3 -->
<license>TODO</license>


<!-- Url tags are optional, but mutiple are allowed, one per tag -->
<!-- Optional attribute type can be: website, bugtracker, or repository -->
<!-- Example: -->
<!-- <url type="website">http://wiki.ros.org/fusion</url> -->


<!-- Author tags are optional, mutiple are allowed, one per tag -->
<!-- Authors do not have to be maintianers, but could be -->
<!-- Example: -->
<!-- <author email="[email protected]">Jane Doe</author> -->


<!-- The *_depend tags are used to specify dependencies -->
<!-- Dependencies can be catkin packages or system dependencies -->
<!-- Examples: -->
<!-- Use build_depend for packages you need at compile time: -->
<!-- <build_depend>message_generation</build_depend> -->
<!-- Use buildtool_depend for build tool packages: -->
<!-- <buildtool_depend>catkin</buildtool_depend> -->
<!-- Use run_depend for packages you need at runtime: -->
<!-- <run_depend>message_runtime</run_depend> -->
<!-- Use test_depend for packages you need only for testing: -->
<!-- <test_depend>gtest</test_depend> -->
<buildtool_depend>catkin</buildtool_depend>

<build_depend>roscpp</build_depend>
<run_depend>roscpp</run_depend>

<!-- The export tag contains other, unspecified, tags -->
<export>
<!-- Other tools can request additional information be placed here -->

</export>
</package>

0 comments on commit 4e5973b

Please sign in to comment.