forked from RPM-Robotics-Lab/file_player_complex_urban
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f0bd24f
Showing
23 changed files
with
1,356 additions
and
0 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 |
---|---|---|
@@ -0,0 +1,134 @@ | ||
cmake_minimum_required(VERSION 2.8.3) | ||
project(file_player) | ||
|
||
find_package(catkin REQUIRED cmake_modules | ||
COMPONENTS | ||
roscpp | ||
rospy | ||
std_msgs | ||
geometry_msgs | ||
message_generation | ||
rosbag | ||
image_transport | ||
cv_bridge | ||
dynamic_reconfigure | ||
pcl_ros | ||
pcl_conversions | ||
pcl_msgs | ||
irp_sen_msgs | ||
) | ||
|
||
|
||
find_package(Eigen REQUIRED) | ||
|
||
#set (CMAKE_PREFIX_PATH /opt/Qt5.6.1/5.6/gcc_64/lib/cmake) | ||
|
||
find_package(Qt5Core) | ||
find_package(Qt5Widgets) | ||
find_package(Qt5Gui) | ||
find_package(Qt5OpenGL) | ||
|
||
|
||
add_message_files( | ||
DIRECTORY msg | ||
) | ||
|
||
generate_messages( | ||
DEPENDENCIES | ||
std_msgs | ||
geometry_msgs | ||
) | ||
|
||
generate_dynamic_reconfigure_options( | ||
cfg/file_player.cfg | ||
#... | ||
) | ||
|
||
catkin_package( | ||
INCLUDE_DIRS include | ||
LIBRARIES | ||
file_player | ||
CATKIN_DEPENDS | ||
roscpp rospy | ||
std_msgs | ||
geometry_msgs | ||
message_runtime | ||
image_transport | ||
cv_bridge | ||
dynamic_reconfigure | ||
pcl_ros | ||
pcl_conversions | ||
pcl_msgs | ||
irp_sen_msgs | ||
|
||
DEPENDS | ||
Eigen | ||
) | ||
|
||
|
||
set (SRC_DIR ${CMAKE_CURRENT_SOURCE_DIR}/src) | ||
|
||
set (File_Player_QTLib_src ${SRC_DIR}/mainwindow.cpp ${SRC_DIR}/ROSThread.cpp) | ||
set (File_Player_QTLib_hdr ${SRC_DIR}/mainwindow.h ${SRC_DIR}/ROSThread.h) | ||
set (File_Player_QTLib_ui ${SRC_DIR}/mainwindow.ui) | ||
set (File_Player_QTBin_src ${SRC_DIR}/main.cpp) | ||
|
||
|
||
|
||
#find_package(GLEW REQUIRED) | ||
#find_package(GLUT REQUIRED) | ||
|
||
|
||
include_directories( | ||
${catkin_INCLUDE_DIRS} | ||
${file_player_INCLUDE_DIRS} | ||
${SRC_DIR} | ||
${Qt5Widgets_INCLUDE_DIRS} | ||
${PROJECT_BINARY_DIR} | ||
include | ||
${Eigen_INCLUDE_DIRS} | ||
) | ||
|
||
|
||
qt5_wrap_cpp(File_Player_QTLib_hdr_moc ${File_Player_QTLib_hdr}) | ||
qt5_wrap_ui (File_Player_QTLib_ui_moc ${File_Player_QTLib_ui}) | ||
qt5_add_resources(SHADER_RSC_ADDED ${SRC_DIR}/resources.qrc) | ||
|
||
|
||
|
||
########### | ||
## Build ## | ||
########### | ||
|
||
add_definitions(-std=c++11) | ||
|
||
#add_definitions(${Qt5Widgets_DEFINITIONS}) | ||
|
||
|
||
add_library(File_Player_QTLib SHARED | ||
${File_Player_QTLib_src} | ||
${File_Player_QTLib_hdr_moc} | ||
${File_Player_QTLib_ui_moc} | ||
) | ||
|
||
target_link_libraries (File_Player_QTLib Qt5::Widgets Qt5::Gui Qt5::OpenGL) | ||
|
||
add_executable(file_player ${File_Player_QTLib_src} ${File_Player_QTLib_hdr} ${File_Player_QTBin_src} ${SHADER_RSC_ADDED}) | ||
|
||
add_dependencies(file_player file_player_msgs_generate_messages_cpp ${PROJECT_NAME}_gencfg) | ||
add_dependencies(file_player ${catkin_EXPORTED_TARGETS}) | ||
add_dependencies(File_Player_QTLib ${catkin_EXPORTED_TARGETS}) | ||
|
||
target_link_libraries(file_player | ||
|
||
${catkin_LIBRARIES} | ||
${QT_LIBRARIES} | ||
${OPENGL_LIBRARIES} | ||
File_Player_QTLib | ||
GL | ||
${BOOST_CUSTOM_LIBS} | ||
${Eigen_LIBRARIES} | ||
) | ||
|
||
|
||
|
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 |
---|---|---|
@@ -0,0 +1,64 @@ | ||
## Sensor Driver installation | ||
|
||
|
||
1. Install Opencv3.1 (Not essential) | ||
Refer to `OpenCV-Installation` in third-party | ||
|
||
2. Install ROS kinetic | ||
|
||
[Ros install url](http://wiki.ros.org/kinetic/Installation/Ubuntu) | ||
|
||
3. Install QT in third-party (Not essential) | ||
|
||
``` | ||
chmod 777 ./install_qt.sh | ||
./install_qt.sh | ||
``` | ||
|
||
4. Install CUDA 8.0 | ||
|
||
step 4 and 5 is need for ZED camera. | ||
If you don't use ZED, jump to step 6. | ||
|
||
5. Install ZED driver in third-party. | ||
|
||
``` | ||
chmod 777 ./ZED_SDK_Linux_Ubuntu16_CUDA80_v1.2.0.run | ||
./ZED_SDK_Linux_Ubuntu16_CUDA80_v1.2.0.run | ||
``` | ||
|
||
6. Run essential_install in third-party. | ||
|
||
``` | ||
chmod 777 ./essential_install.sh | ||
./essential_install.sh | ||
``` | ||
|
||
7. Make catkin_ws and src folder | ||
|
||
``` | ||
mkdir ~/catkin_ws | ||
cd ~/catkin_ws | ||
mkdir src | ||
cd src | ||
catkin_init_workspace | ||
cd .. | ||
catkin_make | ||
``` | ||
|
||
8. Use wstool for installing drivers | ||
|
||
``` | ||
$ cd ~/catkin_ws/src | ||
$ wstool init | ||
$ wstool merge sensor_drivers/drives.rosinstall | ||
$ wstool update | ||
`` | ||
9. build | ||
``` | ||
cd ~/catkin_ws | ||
catkin_make | ||
``` | ||
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 |
---|---|---|
@@ -0,0 +1,8 @@ | ||
#!/usr/bin/env python | ||
PACKAGE = "dynamic_file_player" | ||
|
||
from dynamic_reconfigure.parameter_generator_catkin import * | ||
|
||
gen = ParameterGenerator() | ||
|
||
exit(gen.generate(PACKAGE, "dynamic_file_player", "dynamic_file_player")) |
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 |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#ifndef _COLORS_ | ||
#define _COLORS_ | ||
|
||
/* FOREGROUND */ | ||
#define RST "\x1B[0m" | ||
#define KRED "\x1B[31m" | ||
#define KGRN "\x1B[32m" | ||
#define KYEL "\x1B[33m" | ||
#define KBLU "\x1B[34m" | ||
#define KMAG "\x1B[35m" | ||
#define KCYN "\x1B[36m" | ||
#define KWHT "\x1B[37m" | ||
|
||
#define FRED(x) KRED x RST | ||
#define FGRN(x) KGRN x RST | ||
#define FYEL(x) KYEL x RST | ||
#define FBLU(x) KBLU x RST | ||
#define FMAG(x) KMAG x RST | ||
#define FCYN(x) KCYN x RST | ||
#define FWHT(x) KWHT x RST | ||
|
||
#define BOLD(x) "\x1B[1m" x RST | ||
#define UNDL(x) "\x1B[4m" x RST | ||
|
||
#endif /* _COLORS_ */ |
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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<launch> | ||
<arg name="driver" default="file_player"/> | ||
<arg name="output" default="screen"/> | ||
<node name="$(arg driver)" pkg="$(arg driver)" type="$(arg driver)" output="$(arg output)"> | ||
</node> | ||
</launch> |
Empty file.
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 |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<?xml version="1.0"?> | ||
<package> | ||
<name>file_player</name> | ||
<version>0.0.0</version> | ||
<description>file player</description> | ||
|
||
<!-- One maintainer tag required, multiple allowed, one person per tag --> | ||
<!-- Example: --> | ||
<!-- <maintainer email="[email protected]">Jane Doe</maintainer> --> | ||
<maintainer email="[email protected]">jjy0923</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://jinyongjeong.github.io</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]">Jinyong Jeong</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> | ||
<build_depend>rospy</build_depend> | ||
<build_depend>std_msgs</build_depend> | ||
<build_depend>geometry_msgs</build_depend> | ||
<build_depend>message_generation</build_depend> | ||
<build_depend>image_transport</build_depend> | ||
<build_depend>cv_bridge</build_depend> | ||
<build_depend>dynamic_reconfigure</build_depend> | ||
<build_depend>eigen</build_depend> | ||
<build_depend>pcl_ros</build_depend> | ||
<build_depend>pcl_conversions</build_depend> | ||
<build_depend>pcl_msgs</build_depend> | ||
<build_depend>irp_sen_msgs</build_depend> | ||
<build_depend>cmake_modules</build_depend> | ||
|
||
<run_depend>roscpp</run_depend> | ||
<run_depend>rospy</run_depend> | ||
<run_depend>std_msgs</run_depend> | ||
<run_depend>geometry_msgs</run_depend> | ||
<run_depend>message_runtime</run_depend> | ||
<run_depend>image_transport</run_depend> | ||
<run_depend>cv_bridge</run_depend> | ||
<run_depend>dynamic_reconfigure</run_depend> | ||
<run_depend>eigen</run_depend> | ||
<run_depend>pcl_ros</run_depend> | ||
<run_depend>pcl_conversions</run_depend> | ||
<run_depend>pcl_msgs</run_depend> | ||
<run_depend>irp_sen_msgs</run_depend> | ||
<run_depend>cmake_modules</run_depend> | ||
|
||
<!-- The export tag contains other, unspecified, tags --> | ||
<export> | ||
<!-- Other tools can request additional information be placed here --> | ||
|
||
</export> | ||
</package> |
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
/opt/ros/kinetic/share/catkin/cmake/toplevel.cmake |
Oops, something went wrong.