Skip to content

Commit

Permalink
Merge pull request #136 from krishna95/catkin_branch
Browse files Browse the repository at this point in the history
Changed The Lane Detection packages logitech camera, agv_framework, lane...
  • Loading branch information
krishna95 committed May 11, 2015
2 parents 9363034 + 7929236 commit a7aecfe
Show file tree
Hide file tree
Showing 20 changed files with 304 additions and 100 deletions.
20 changes: 18 additions & 2 deletions agv_framework/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
cmake_minimum_required(VERSION 2.4.6)
project(agv_framework)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
)
include_directories(
${catkin_INCLUDE_DIRS}
)
include_directories(
${PROJECT_SOURCE_DIR}/include)

# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
Expand All @@ -9,7 +20,6 @@ include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)

rosbuild_init()

#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
Expand All @@ -23,7 +33,7 @@ set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib)

#common commands for building c++ executables and libraries
#rosbuild_add_library(${PROJECT_NAME} src/example.cpp)
rosbuild_add_library(${PROJECT_NAME}
add_library(${PROJECT_NAME}
src/HealthMonitor.cpp
src/LifeCycle.cpp
src/environment/Environment.cpp
Expand All @@ -42,6 +52,12 @@ rosbuild_add_library(${PROJECT_NAME}
src/robot/Sensor.cpp
src/utils/Pose2D.cpp
)

catkin_package( INCLUDE_DIRS include include
# LIBRARIES compute_cdist
CATKIN_DEPENDS roscpp
# DEPENDS assimp Eigen mlpack
)
#rosbuild_add_library(agv src/Sensor.cpp)
#target_link_libraries(${PROJECT_NAME} another_library)
#rosbuild_add_boost_directories()
Expand Down
1 change: 0 additions & 1 deletion agv_framework/Makefile

This file was deleted.

17 changes: 0 additions & 17 deletions agv_framework/manifest.xml

This file was deleted.

21 changes: 21 additions & 0 deletions agv_framework/package.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<package>

<name>agv_framework</name>
<description>

agv_framework

</description>
<version>0.0.0</version>
<maintainer email="[email protected]">Satya Prakash</maintainer>
<license>BSD</license>
<url>http://ros.org/wiki/agv_framework</url>
<buildtool_depend>catkin</buildtool_depend>
<build_depend>roscpp</build_depend>
<run_depend>roscpp</run_depend>
<export>
<cpp cflags="-I${prefix}/include" lflags="-L${prefix}/lib"/>
</export>
</package>


40 changes: 30 additions & 10 deletions environment/interpretation/lane_detector/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,20 @@
cmake_minimum_required(VERSION 2.4.6)
project(lane_detector)
include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
find_package(catkin REQUIRED COMPONENTS
roscpp
rospy
std_msgs
agv_framework
cv_bridge
#opencv2
image_transport
roslib
)
find_package(OpenCV REQUIRED)

include_directories( ${catkin_INCLUDE_DIRS} ${OpenCV_INCLUDE_DIRS} )
include_directories(SYSTEM ${OpenCV_INCLUDE_DIRS})

# Set the build type. Options are:
# Coverage : w/ debug symbols, w/o optimization, w/ code-coverage
Expand All @@ -8,8 +23,12 @@ include($ENV{ROS_ROOT}/core/rosbuild/rosbuild.cmake)
# RelWithDebInfo : w/ debug symbols, w/ optimization
# MinSizeRel : w/o debug symbols, w/ optimization, stripped binaries
#set(ROS_BUILD_TYPE RelWithDebInfo)

rosbuild_init()
catkin_package(
INCLUDE_DIRS include
# LIBRARIES compute_cdist
CATKIN_DEPENDS roscpp rospy cv_bridge image_transport
# DEPENDS assimp Eigen mlpack
)

#set the default path for built executables to the "bin" directory
set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin)
Expand Down Expand Up @@ -40,24 +59,25 @@ set(svm_SRC ${PROJECT_SOURCE_DIR}/src/learner/libsvm/svmWrapper.cpp ${PROJECT_SO
set_source_files_properties(${svm_SRC} PROPERTIES COMPILE_FLAGS "-O3 -fPIC" )
add_library(svm ${svm_SRC})
#set(lib_SVM ${PROJECT_SOURCE_DIR}/libsvmWrapper.so ${PROJECT_SOURCE_DIR}/libsvm.so)
set(lib_SVM ${PROJECT_SOURCE_DIR}/lib/libsvm.a)
#set(lib_SVM ${PROJECT_SOURCE_DIR}/lib/libsvm.a)

rosbuild_add_executable(generateSamples src/learner/generateSamples.cpp)
add_executable(generateSamples src/learner/generateSamples.cpp)
target_link_libraries(generateSamples ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})

rosbuild_add_executable(svmTrain src/learner/svmTrain.cpp)
target_link_libraries(svmTrain ${lib_SVM})
add_executable(svmTrain src/learner/svmTrain.cpp ${PROJECT_SOURCE_DIR}/src/learner/libsvm/svmWrapper.cpp ${PROJECT_SOURCE_DIR}/src/learner/libsvm/svm.cpp)
target_link_libraries(svmTrain svm ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})

#SVM end
#############################################################################################################################################

rosbuild_add_library(laneDetector
add_library(laneDetector
src/detector/getLaneBinary.cpp
src/detector/grassRemoval.cpp
src/detector/inversePerspectiveTransform.cpp
src/detector/laneDetector.cpp
src/detector/obstacleRemoval.cpp
src/detector/preprocessing.cpp)
target_link_libraries(laneDetector svm)
target_link_libraries(laneDetector svm ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})

rosbuild_add_executable(lane_detector src/laneDetectorNode.cpp)
target_link_libraries(lane_detector laneDetector libagv_framework.so m)
add_executable(lane_detector src/laneDetectorNode.cpp)
target_link_libraries(lane_detector laneDetector agv_framework ${OpenCV_LIBRARIES} ${catkin_LIBRARIES})
1 change: 0 additions & 1 deletion environment/interpretation/lane_detector/Makefile

This file was deleted.

Loading

0 comments on commit a7aecfe

Please sign in to comment.