-
Notifications
You must be signed in to change notification settings - Fork 107
ZED Camera Support With OPT #123
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
chanbrown007
wants to merge
28
commits into
OpenPTrack:master
Choose a base branch
from
chanbrown007:master
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
Changes from 20 commits
Commits
Show all changes
28 commits
Select commit
Hold shift + click to select a range
1733b14
ZED Camera Support Update
chanbrown007 f36f3f4
Update README for Zed
chanbrown007 9d69382
Removing Duplicate files
chanbrown007 e21b31c
Deleting Duplicate File
chanbrown007 64f4823
Delete ground_based_people_detector_node_zed.cpp~
chanbrown007 0df9336
Delete haardispada_node.cpp~
chanbrown007 8edbf3d
Delete haardispada_node_sr.cpp~
chanbrown007 89b4222
Delete haardispada_nodelet.cpp~
chanbrown007 abfa1cf
Delete CMakeLists.txt~
chanbrown007 7c85bf3
Delete ground_based_people_detector_zed.yaml~
chanbrown007 dca96d4
Delete ground_based_people_detection_app.hpp~
chanbrown007 755a509
Delete ground_based_people_detection_app.h~
chanbrown007 cc8b09d
Delete haardispada.h~
chanbrown007 f6dcaa7
Delete detector_depth.launch~
chanbrown007 c5d664a
Delete detector_depth_zed.launch~
chanbrown007 61e9d53
Delete haardispada.cpp~
chanbrown007 00f5f5b
tracking ZED Update
chanbrown007 bc63550
Delete CMakeLists.txt~
chanbrown007 6565321
Delete zed_wrapper_node.cpp~
chanbrown007 b1a09ed
Delete Zed.cfg~
chanbrown007 c40249f
Re-included SR support
chanbrown007 34930cc
Delete ground_.txt
chanbrown007 1769c14
Debug Lines Removed
chanbrown007 8b5d31d
Removed ZED Wrapper - Did some clean up
chanbrown007 141b0ae
Updated README with ZED ROS Wrapper Instructions
chanbrown007 37a10b5
Delete README-ZED WITH OPT INSTALL ONLY FOLLOW THIS IF USING ZED.txt~
chanbrown007 ae41c97
Updated OpenCV 3.1 Download
chanbrown007 161a5fb
Fixed tag
chanbrown007 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
114 changes: 114 additions & 0 deletions
114
README-ZED WITH OPT INSTALL ONLY FOLLOW THIS IF USING ZED.txt
This file contains hidden or 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,114 @@ | ||
| Built for Ubuntu 14.04 with Ros Indigo | ||
|
|
||
| ---------------------------------INSTALLING OPT WITH ZED-------------------------------------------------------- | ||
|
|
||
| First Install Cuda 7.5 Toolkit: | ||
|
|
||
| Using below link: | ||
| https://developer.nvidia.com/cuda-75-downloads-archive | ||
|
|
||
| For Options Select: | ||
| Linux | ||
| x86_64 | ||
| Ubuntu | ||
| 14.04 | ||
| deb (local) | ||
|
|
||
| download cuda-repo-ubuntu1404-7-5-local package | ||
|
|
||
| After downloaded: | ||
| In terminal go to folder containing cuda package | ||
| $ sudo dpkg -i cuda-repo-ubuntu1404-7-5-local_7.5-18_amd64.deb | ||
| $ sudo apt-get update | ||
| $ sudo apt-get install cuda-7-5 | ||
|
|
||
| After install, reboot computer | ||
| Verify Nvidia installed: | ||
| $ nvidia-settings | ||
|
|
||
| and make sure there is an nvidia driver number | ||
|
|
||
| Next make sure enviroment path is set: | ||
| $ export CUDA_HOME=/usr/local/cuda-7.5 | ||
| $ export LD_LIBRARY_PATH=${CUDA_HOME}/lib64 | ||
|
|
||
| $ PATH=${CUDA_HOME}/bin:${PATH} | ||
| $ export PATH | ||
|
|
||
| Finally verify install: | ||
| $ cuda-install-samples-7.5.sh ~ | ||
| $ cd ~/NVIDIA_CUDA-7.5_Samples | ||
| $ cd 1_Utilities/deviceQuery | ||
| $ make | ||
| $ ./deviceQuery | ||
|
|
||
| The terminal then should output the cuda version info | ||
|
|
||
| Next it is necessary to install ROS/OpenCV 2.0 (included in ROS): | ||
| from directory where OPT is copied currently | ||
| $ cd open_ptrack/scripts | ||
| $ chmod +x *.sh | ||
| $ ./ros_install.sh | ||
| $ source /opt/ros/indigo/setup.bash | ||
| $ ./ros_configure.sh | ||
|
|
||
| OpenCV 3.1 is required for ZED to work (however it cannot conflict with OpenCV 2!! Therefore we will create a separate install path): | ||
| $ cd | ||
| $ sudo apt-get update | ||
|
|
||
| $ sudo apt-get install libopencv-dev build-essential checkinstall cmake pkg-config yasm libtiff4-dev libjpeg-dev libjasper-dev libavcodec-dev libavformat-dev libswscale-dev libdc1394-22-dev libxine-dev libgstreamer0.10-dev libgstreamer-plugins-base0.10-dev libv4l-dev python-dev python-numpy libtbb-dev libqt4-dev libgtk2.0-dev libfaac-dev libmp3lame-dev libopencore-amrnb-dev libopencore-amrwb-dev libtheora-dev libvorbis-dev libxvidcore-dev x264 v4l-utils | ||
|
|
||
| $ sudo add-apt-repository ppa:joyard-nicolas/ffmpeg | ||
| $ sudo apt-get update | ||
| $ sudo apt-get install ffmpeg | ||
| $ sudo apt-get install frei0r-plugins | ||
|
|
||
| $ sudo mkdir /usr/local/opencv3 | ||
|
|
||
| $ mkdir OpenCV | ||
| $ cd OpenCV | ||
| $ git clone https://github.com/Itseez/opencv.git | ||
|
|
||
| $ cd opencv | ||
| $ mkdir release | ||
| $ cd release | ||
| $ cmake -D CMAKE_BUILD_TYPE=RELEASE -D CMAKE_INSTALL_PREFIX=/usr/local/opencv3 -D WITH_TBB=ON -D BUILD_NEW_PYTHON_SUPPORT=ON -D WITH_V4L=ON -D INSTALL_C_EXAMPLES=ON -D INSTALL_PYTHON_EXAMPLES=ON -D BUILD_EXAMPLES=ON -D WITH_QT=ON -D WITH_OPENGL=ON -D ENABLE_FAST_MATH=1 -D CUDA_FAST_MATH=1 -D WITH_CUBLAS=1 .. | ||
|
|
||
| Note adjust the -j7 to the number of available cores on computer | ||
| $ make -j7 | ||
| $ sudo make install | ||
| This process WILL TAKE FOREVER... | ||
|
|
||
| $ printf '# OpenCV\nPKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/opencv3/lib/pkgconfig\nexport PKG_CONFIG_PATH\n' >> ~/.bashrc | ||
| $ source ~/.bashrc | ||
|
|
||
| Now Time to Install ZED Camera Drivers: | ||
| Download ZED v1.1.0 SDK from: https://www.stereolabs.com/developers/release/archives/ | ||
| It is very important v1.1.0 is downloaded and not any other version | ||
|
|
||
| First make sure ZED Camera is plugged into a POWERED USB 3.0 Slot | ||
| $ ./ZED_SDK_Linux_x86_64_v1.1.0.run | ||
| Press q to exit license agreement and accept all defaults | ||
|
|
||
| Finally Time To Install OPT: | ||
| $ cd | ||
| $ cd open_ptrack/scripts | ||
| $ ./openptrack_install.sh | ||
| Note sometimes you have to run ./openptrack_install.sh twice for it to fully install | ||
| If there is a persistent error that appears to be linked with OpenCV it sometimes is then necessary to install OpenCV 2 in /usr/local (following same procedure as before) and make sure to add package configure (/usr/local/lib/pkgconfig) to path | ||
|
|
||
| It is suggested to delete openp_track folder in home and then: | ||
| $ ln -s ~/workspace/ros/catkin/src/open_ptrack ~/open_ptrack | ||
|
|
||
| ------------------RUNNING OPT WITH ZED----------------------------------------------------- | ||
| To Run make Sure ZED IS PLUGGED IN: | ||
| $ roslaunch tracking detection_and_tracking_zed.launch | ||
|
|
||
| In a 2nd terminal, tracking can be fine tuned using: | ||
| $ rosrun rqt_reconfigure rqt_reconfigure | ||
|
|
||
| ALSO ZED Camera Settings Can Be Adjusted in open_ptrack/zed_ros_wrapper/launch/zed.launch: | ||
| Resolution Parameter: 0 = 2K, 1 = 1080HD, 2 = 720HD, 3 = VGA | ||
| Quality Parameter (Disparity Map Quality): 0 = none, 1 = performance, 2 = medium, 3 = high | ||
| Frame Rate: 2K has max frame rate of 15fps, 1080 - 30fps and 720 - 60fps | ||
| --------------------------------------------------------------------------------------------- |
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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
This file contains hidden or 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,4 @@ | ||
| 1.59075e-37 | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Remove this file.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Done |
||
| 0 | ||
| 1.4013e-45 | ||
| 1.45 | ||
This file contains hidden or 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,52 @@ | ||
| ####################### | ||
| ## Ground estimation ## | ||
| ####################### | ||
| # Ground estimation mode - 0:manual, 1:semi-auto, 2:auto with user validation, 3:fully automatic (default 0) | ||
| ground_estimation_mode: 3 | ||
| # Flag stating if the ground should be read from file, if present: | ||
| read_ground_from_file: false | ||
| # Flag that locks the ground plane update: | ||
| lock_ground: false | ||
| # Threshold on the ratio of valid points needed for ground estimation: | ||
| valid_points_threshold: 0.1 | ||
|
|
||
| ############################ | ||
| ## Background subtraction ## | ||
| ############################ | ||
| # Flag enabling/disabling background subtraction: | ||
| background_subtraction: false | ||
| # Resolution of the octree representing the background: | ||
| background_resolution: 0.3 | ||
| # Seconds to use to learn the background: | ||
| background_seconds: 3.0 | ||
|
|
||
| ############################################## | ||
| ## Ground based people detection parameters ## | ||
| ############################################## | ||
| # Minimum detection confidence: | ||
| ground_based_people_detection_min_confidence: -5 | ||
| # Minimum person height: | ||
| minimum_person_height: 0.5 | ||
| # Maximum person height: | ||
| maximum_person_height: 2.3 | ||
| # Kinect's best range is 5.0 m, greater is possible w/ larger error | ||
| max_distance: 10.0 | ||
| # Point cloud downsampling factor: 4 | ||
| sampling_factor: 4 | ||
| # Flag stating if classifiers based on RGB image should be used or not: | ||
| use_rgb: true | ||
| # Threshold on image luminance. If luminance is over this threhsold, classifiers on RGB image are also used: | ||
| minimum_luminance: 120 | ||
| # If true, sensor tilt angle wrt ground plane is compensated to improve people detection: | ||
| sensor_tilt_compensation: flase | ||
| # Minimum distance between two persons: | ||
| heads_minimum_distance: 0.3 | ||
| # Voxel size used to downsample the point cloud (lower: detection slower but more precise; higher: detection faster but less precise): | ||
| voxel_size: .06 | ||
| # Denoising flag. If true, a statistical filter is applied to the point cloud to remove noise: | ||
| apply_denoising: false | ||
| # MeanK for denoising (the higher it is, the stronger is the filtering): | ||
| mean_k_denoising: 5 | ||
| # Standard deviation for denoising (the lower it is, the stronger is the filtering): | ||
| std_dev_denoising: 0.3 | ||
|
|
This file contains hidden or 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,4 @@ | ||
| 2.94239e-07 | ||
| 4.57398e-41 | ||
| 1.49029e-38 | ||
| 0 |
This file contains hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
With this, the files for the SwissRanger are not built. I think we should maintain them.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done