Skip to content

Commit

Permalink
[fix] Install commands for all the packages (autowarefoundation#1861)
Browse files Browse the repository at this point in the history
* Initial fixes to detection, sensing, semantics and utils

* fixing wrong filename on install command

* Fixes to install commands

* Hokuyo fix name

* Fix obj db

* Obj db include fixes

* End of final cleaning sweep

* Incorrect command order in runtime manager

* Param tempfile not required by runtime_manager

* * Fixes to runtime manager install commands
* Remove devel directory from catkin, if any

* Updated launch files for robosense

* Updated robosense

* Fix/add missing install (autowarefoundation#1977)

* Added launch install to lidar_kf_contour_track

* Added install to op_global_planner

* Added install to way_planner

* Added install to op_local_planner

* Added install to op_simulation_package

* Added install to op_utilities

* Added install to sync

* * Improved installation script for pointgrey packages
* Fixed nodelet error for gmsl cameras

* USe install space in catkin as well

* add install to catkin

* Fix install directives (autowarefoundation#1990)

* Fixed installation path

* Fixed params installation path

* Fixed cfg installation path

* Delete cache on colcon_release
  • Loading branch information
amc-nu authored Feb 18, 2019
1 parent a94c8d3 commit 6657492
Show file tree
Hide file tree
Showing 94 changed files with 977 additions and 569 deletions.
1 change: 1 addition & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
[submodule "ros/src/sensing/drivers/lidar/packages/robosense"]
path = ros/src/sensing/drivers/lidar/packages/robosense
url = https://github.com/CPFL/robosense
branch = develop-curves-function
[submodule "ros/src/msgs/lgsvl_msgs"]
path = ros/src/msgs/lgsvl_msgs
url = https://github.com/lgsvl/lgsvl_msgs.git
Expand Down
11 changes: 8 additions & 3 deletions ros/catkin_make_release
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,15 @@ if [[ -d devel ]]; then
rm -rf devel
fi

CATKIN_OPTS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs"
if [[ -d install ]]; then
rm -rf install
fi

if [[ -d log ]]; then
rm -rf log
fi

catkin_make clean $CATKIN_OPTS
source devel/setup.bash
CATKIN_OPTS="-DCMAKE_BUILD_TYPE=Release -DCMAKE_LIBRARY_PATH=/usr/local/cuda/lib64/stubs install"

export LIBRARY_PATH=/usr/lib/OpenNI2/Drivers:$LIBRARY_PATH
catkin_make $CATKIN_OPTS $@
8 changes: 8 additions & 0 deletions ros/colcon_release
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
#!/usr/bin/env bash
set -e

if [[ -d devel ]]; then
rm -rf devel
fi

if [[ -d build ]]; then
rm -rf build
fi
Expand All @@ -9,6 +13,10 @@ if [[ -d install ]]; then
rm -rf install
fi

if [[ -d log ]]; then
rm -rf log
fi

if [ -f src/CMakeLists.txt ]; then
rm -r src/CMakeLists.txt
fi
Expand Down
4 changes: 2 additions & 2 deletions ros/run
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ if [ "$?" == "0" ]; then
fi

# boot ros-master
${TERMINAL} ${MASTER_DISPLAY_OPTION} ${OPTION_WORKING_DIR}=${MY_PATH} ${OPTION_COMMAND}="bash -c 'source ./devel/setup.bash; roscore'"&
${TERMINAL} ${MASTER_DISPLAY_OPTION} ${OPTION_WORKING_DIR}=${MY_PATH} ${OPTION_COMMAND}="bash -c 'source ./install/setup.bash; roscore'"&

# boot runtime_manager
${TERMINAL} ${RUNMGR_DISPLAY_OPTION} ${OPTION_WORKING_DIR}=${MY_PATH} ${OPTION_COMMAND}="bash -c 'source ./devel/setup.bash; rosrun runtime_manager runtime_manager_dialog.py'"
${TERMINAL} ${RUNMGR_DISPLAY_OPTION} ${OPTION_WORKING_DIR}=${MY_PATH} ${OPTION_COMMAND}="bash -c 'source ./install/setup.bash; rosrun runtime_manager runtime_manager_dialog.py'"
9 changes: 9 additions & 0 deletions ros/src/actuation/vehicles/packages/ymc/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -53,3 +53,12 @@ target_link_libraries(g30esli_interface
${catkin_LIBRARIES}
${CMAKE_CURRENT_SOURCE_DIR}/lib/libymc_can_${LIB_VERSION}${LIB_ARCH}.a
)

install(TARGETS g30esli_interface
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
87 changes: 0 additions & 87 deletions ros/src/common/libvectormap/FindEigen.cmake

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -88,11 +88,14 @@ target_include_directories(pixel_cloud_fusion PRIVATE
target_link_libraries(pixel_cloud_fusion
pixel_cloud_fusion_lib)

install(TARGETS pixel_cloud_fusion
install(TARGETS pixel_cloud_fusion pixel_cloud_fusion_lib
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

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

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
Original file line number Diff line number Diff line change
Expand Up @@ -110,11 +110,14 @@ target_include_directories(range_vision_fusion PRIVATE
target_link_libraries(range_vision_fusion
range_vision_fusion_lib)

install(TARGETS range_vision_fusion
install(TARGETS range_vision_fusion range_vision_fusion_lib
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})

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

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,6 @@ include_directories(
${autoware_msgs_INCLUDE_DIRS}
${OpenCV_INCLUDE_DIRS}
)
link_directories(${PCL_LIBRARY_DIRS})
link_directories(${OpenCV_LIBRARY_DIRS})

#Euclidean Cluster
Expand Down Expand Up @@ -82,15 +81,20 @@ if (${CUDA_FOUND})
target_link_libraries(lidar_euclidean_cluster_detect
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${YAML_CPP_LIBRARIES}
gpu_euclidean_clustering)

install(TARGETS
gpu_euclidean_clustering
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

else ()
target_link_libraries(lidar_euclidean_cluster_detect
${OpenCV_LIBRARIES}
${catkin_LIBRARIES}
${PCL_LIBRARIES}
${YAML_CPP_LIBRARIES})

endif ()
Expand All @@ -106,9 +110,16 @@ if (OPENMP_FOUND)
)
endif ()

install(DIRECTORY include/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION})

install(TARGETS
lidar_euclidean_cluster_detect
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
Original file line number Diff line number Diff line change
Expand Up @@ -50,5 +50,9 @@ install(TARGETS
lidar_fake_perception_node
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ catkin_package(
)


link_directories(${PCL_LIBRARY_DIRS})
link_directories(${OpenCV_LIBRARY_DIRS})

include_directories(
Expand All @@ -35,19 +34,28 @@ include_directories(
${OpenCV_INCLUDE_DIRS}
)

set(SOURCE_FILES nodes/lidar_naive_l_shape_detect/lidar_naive_l_shape_detect_node.cpp nodes/lidar_naive_l_shape_detect/lidar_naive_l_shape_detect.cpp)
set(SOURCE_FILES
nodes/lidar_naive_l_shape_detect/lidar_naive_l_shape_detect_node.cpp
nodes/lidar_naive_l_shape_detect/lidar_naive_l_shape_detect.cpp)

add_executable(lidar_naive_l_shape_detect ${SOURCE_FILES})

add_dependencies(lidar_naive_l_shape_detect
${catkin_EXPORTED_TARGETS}
)

target_link_libraries(lidar_naive_l_shape_detect ${catkin_LIBRARIES} ${OpenCV_LIBRARIES})
target_link_libraries(lidar_naive_l_shape_detect
${catkin_LIBRARIES}
${OpenCV_LIBRARIES}
)

install(TARGETS
lidar_naive_l_shape_detect
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@ include_directories(
${catkin_INCLUDE_DIRS}
include)

link_directories(${PCL_LIBRARY_DIRS})

#imm_ukf_pda
add_executable(imm_ukf_pda
nodes/imm_ukf_pda/imm_ukf_pda_main.cpp
Expand All @@ -41,7 +39,6 @@ add_executable(imm_ukf_pda
)
target_link_libraries(imm_ukf_pda
${catkin_LIBRARIES}
${PCL_LIBRARIES}
)
add_dependencies(imm_ukf_pda
${catkin_EXPORTED_TARGETS}
Expand All @@ -52,5 +49,9 @@ install(TARGETS
imm_ukf_pda
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,9 @@ install(TARGETS
lidar_kf_contour_track
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ install(TARGETS lidar_shape_estimation
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
FILES_MATCHING PATTERN "*.launch"
)

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ target_include_directories(roi_object_filter PRIVATE
target_link_libraries(roi_object_filter
roi_object_filter_lib)

install(TARGETS roi_object_filter
install(TARGETS roi_object_filter_lib roi_object_filter
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ else () # if(EXISTS "${SSD_CAFFE_PATH}")
endif () # if(EXISTS "${SSD_CAFFE_PATH}")


install(TARGETS region_tlr feat_proj tlr_tuner roi_extractor label_maker
install(TARGETS region_tlr feat_proj tlr_tuner roi_extractor label_maker libcontext tl_switch
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -140,5 +140,5 @@ install(TARGETS
libdpm_ttic
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_GLOBAL_BIN_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)
Original file line number Diff line number Diff line change
Expand Up @@ -98,3 +98,11 @@ install(TARGETS vision_dpm_ttic_detect
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
)

install(DIRECTORY launch/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/launch
PATTERN ".svn" EXCLUDE)

install(DIRECTORY data/
DESTINATION ${CATKIN_PACKAGE_SHARE_DESTINATION}/data
PATTERN ".svn" EXCLUDE)
Loading

0 comments on commit 6657492

Please sign in to comment.