Comments (12)
build the new vision_opencv https://github.com/ros-perception/vision_opencv of kinect branch from source should fix this problem.
from zed-ros-wrapper.
Hi Zeng,
I have removed my OCV 2.4.12 and install OCV 3.1. As your suggestion downloaded vision_opencv, put them in an empty src. Changed the name in CMakeLists and package.xml to cv3_bridge to avoid further confusion, after initializing this new src I have compiled with "cv_bridge" and zed_ros_warpper.
The linking seems right:
Linking CXX executable /home/xepost/catkin_ws/devel/lib/zed_wrapper/zed_wrapper_node
cd /home/xepost/catkin_ws/build/zed-ros-wrapper-master && /usr/bin/cmake -E cmake_link_script CMakeFiles/zed_wrapper_node.dir/link.txt --verbose=1
/usr/bin/c++ -Wno-deprecated -g CMakeFiles/zed_wrapper_node.dir/src/zed_wrapper_node.cpp.o -o /home/xepost/catkin_ws/devel/lib/zed_wrapper/zed_wrapper_node -L/usr/local/cuda-7.5/lib64 -L/usr/local/zed/lib -L/usr/local/lib -rdynamic /opt/ros/indigo/lib/libimage_transport.so -ltinyxml /opt/ros/indigo/lib/libclass_loader.so -lPocoFoundation -ldl /opt/ros/indigo/lib/libroslib.so /home/xepost/catkin_ws/devel/lib/libcv3_bridge.so /usr/local/lib/libopencv_xphoto.so.3.1.0 /usr/local/lib/libopencv_xobjdetect.so.3.1.0 /usr/local/lib/libopencv_ximgproc.so.3.1.0 /usr/local/lib/libopencv_xfeatures2d.so.3.1.0 /usr/local/lib/libopencv_tracking.so.3.1.0 /usr/local/lib/libopencv_text.so.3.1.0 /usr/local/lib/libopencv_surface_matching.so.3.1.0 /usr/local/lib/libopencv_structured_light.so.3.1.0 /usr/local/lib/libopencv_stereo.so.3.1.0 /usr/local/lib/libopencv_sfm.so.3.1.0 /usr/local/lib/libopencv_saliency.so.3.1.0 /usr/local/lib/libopencv_rgbd.so.3.1.0 /usr/local/lib/libopencv_reg.so.3.1.0 /usr/local/lib/libopencv_plot.so.3.1.0 /usr/local/lib/libopencv_optflow.so.3.1.0 /usr/local/lib/libopencv_line_descriptor.so.3.1.0 /usr/local/lib/libopencv_hdf.so.3.1.0 /usr/local/lib/libopencv_fuzzy.so.3.1.0 /usr/local/lib/libopencv_face.so.3.1.0 /usr/local/lib/libopencv_dpm.so.3.1.0 /usr/local/lib/libopencv_dnn.so.3.1.0 /usr/local/lib/libopencv_datasets.so.3.1.0 /usr/local/lib/libopencv_ccalib.so.3.1.0 /usr/local/lib/libopencv_bioinspired.so.3.1.0 /usr/local/lib/libopencv_bgsegm.so.3.1.0 /usr/local/lib/libopencv_aruco.so.3.1.0 /usr/local/lib/libopencv_viz.so.3.1.0 /usr/local/lib/libopencv_videostab.so.3.1.0 /usr/local/lib/libopencv_videoio.so.3.1.0 /usr/local/lib/libopencv_video.so.3.1.0 /usr/local/lib/libopencv_superres.so.3.1.0 /usr/local/lib/libopencv_stitching.so.3.1.0 /usr/local/lib/libopencv_shape.so.3.1.0 /usr/local/lib/libopencv_photo.so.3.1.0 /usr/local/lib/libopencv_objdetect.so.3.1.0 /usr/local/lib/libopencv_ml.so.3.1.0 /usr/local/lib/libopencv_imgproc.so.3.1.0 /usr/local/lib/libopencv_imgcodecs.so.3.1.0 /usr/local/lib/libopencv_highgui.so.3.1.0 /usr/local/lib/libopencv_flann.so.3.1.0 /usr/local/lib/libopencv_features2d.so.3.1.0 /usr/local/lib/libopencv_cudev.so.3.1.0 /usr/local/lib/libopencv_cudawarping.so.3.1.0 /usr/local/lib/libopencv_cudastereo.so.3.1.0 /usr/local/lib/libopencv_cudaoptflow.so.3.1.0 /usr/local/lib/libopencv_cudaobjdetect.so.3.1.0 /usr/local/lib/libopencv_cudalegacy.so.3.1.0 /usr/local/lib/libopencv_cudaimgproc.so.3.1.0 /usr/local/lib/libopencv_cudafilters.so.3.1.0 /usr/local/lib/libopencv_cudafeatures2d.so.3.1.0 /usr/local/lib/libopencv_cudacodec.so.3.1.0 /usr/local/lib/libopencv_cudabgsegm.so.3.1.0 /usr/local/lib/libopencv_cudaarithm.so.3.1.0 /usr/local/lib/libopencv_core.so.3.1.0 /usr/local/lib/libopencv_calib3d.so.3.1.0 /opt/ros/indigo/lib/libdynamic_reconfigure_config_init_mutex.so /opt/ros/indigo/lib/libtf2_ros.so /opt/ros/indigo/lib/libactionlib.so /opt/ros/indigo/lib/libmessage_filters.so /opt/ros/indigo/lib/libroscpp.so -lboost_signals -lboost_filesystem /opt/ros/indigo/lib/librosconsole.so /opt/ros/indigo/lib/librosconsole_log4cxx.so /opt/ros/indigo/lib/librosconsole_backend_interface.so -llog4cxx -lboost_regex /opt/ros/indigo/lib/libxmlrpcpp.so /opt/ros/indigo/lib/libtf2.so /opt/ros/indigo/lib/libroscpp_serialization.so /opt/ros/indigo/lib/librostime.so -lboost_date_time /opt/ros/indigo/lib/libcpp_common.so -lboost_system -lboost_thread -lpthread -lconsole_bridge /usr/local/zed/lib/libsl_zed.so /usr/local/zed/lib/libsl_depthcore.so /usr/local/zed/lib/libsl_calibration.so /usr/local/zed/lib/libsl_tracking.so /usr/local/zed/lib/libsl_svorw.so /usr/local/zed/lib/libcudpp.so /usr/local/zed/lib/libcudpp_hash.so /usr/local/cuda-7.5/lib64/libcudart.so /usr/local/cuda-7.5/lib64/libnppi.so /usr/local/cuda-7.5/lib64/libnpps.so /usr/local/lib/libopencv_core.so.3.1.0 /usr/local/lib/libopencv_highgui.so.3.1.0 /usr/local/lib/libopencv_imgproc.so.3.1.0 /usr/local/lib/libboost_system.so /usr/local/lib/libboost_filesystem.so /usr/local/lib/libboost_thread.so /usr/local/lib/libboost_date_time.so /usr/local/lib/libboost_iostreams.so /usr/local/lib/libboost_serialization.so /usr/local/lib/libboost_chrono.so -lpthread /usr/local/lib/libpcl_common.so /usr/local/lib/libpcl_octree.so -lOpenNI -lOpenNI2 /usr/lib/libvtkCommon.so.5.8.0 /usr/lib/libvtkFiltering.so.5.8.0 /usr/lib/libvtkImaging.so.5.8.0 /usr/lib/libvtkGraphics.so.5.8.0 /usr/lib/libvtkGenericFiltering.so.5.8.0 /usr/lib/libvtkIO.so.5.8.0 /usr/lib/libvtkRendering.so.5.8.0 /usr/lib/libvtkVolumeRendering.so.5.8.0 /usr/lib/libvtkHybrid.so.5.8.0 /usr/lib/libvtkWidgets.so.5.8.0 /usr/lib/libvtkParallel.so.5.8.0 /usr/lib/libvtkInfovis.so.5.8.0 /usr/lib/libvtkGeovis.so.5.8.0 /usr/lib/libvtkViews.so.5.8.0 /usr/lib/libvtkCharts.so.5.8.0 /usr/local/lib/libpcl_io.so -Wl,-Bstatic -lflann_cpp_s -Wl,-Bdynamic /usr/local/lib/libpcl_kdtree.so /usr/local/lib/libpcl_search.so /usr/local/lib/libpcl_sample_consensus.so /usr/local/lib/libpcl_filters.so /usr/local/lib/libpcl_features.so /usr/local/lib/libpcl_visualization.so /usr/local/lib/libpcl_ml.so /usr/local/lib/libpcl_segmentation.so /usr/local/lib/libpcl_people.so /usr/local/lib/libpcl_keypoints.so /usr/local/lib/libpcl_outofcore.so /usr/local/lib/libpcl_stereo.so /usr/local/lib/libpcl_registration.so -lqhull /usr/local/lib/libpcl_surface.so /usr/local/lib/libpcl_recognition.so /usr/local/lib/libpcl_tracking.so /usr/local/lib/libboost_system.so /usr/local/lib/libboost_filesystem.so /usr/local/lib/libboost_thread.so /usr/local/lib/libboost_date_time.so /usr/local/lib/libboost_iostreams.so /usr/local/lib/libboost_serialization.so /usr/local/lib/libboost_chrono.so -lpthread -lqhull -lOpenNI -lOpenNI2 -Wl,-Bstatic -lflann_cpp_s -Wl,-Bdynamic /usr/lib/libvtkCommon.so.5.8.0 /usr/lib/libvtkFiltering.so.5.8.0 /usr/lib/libvtkImaging.so.5.8.0 /usr/lib/libvtkGraphics.so.5.8.0 /usr/lib/libvtkGenericFiltering.so.5.8.0 /usr/lib/libvtkIO.so.5.8.0 /usr/lib/libvtkRendering.so.5.8.0 /usr/lib/libvtkVolumeRendering.so.5.8.0 /usr/lib/libvtkHybrid.so.5.8.0 /usr/lib/libvtkWidgets.so.5.8.0 /usr/lib/libvtkParallel.so.5.8.0 /usr/lib/libvtkInfovis.so.5.8.0 /usr/lib/libvtkGeovis.so.5.8.0 /usr/lib/libvtkViews.so.5.8.0 /usr/lib/libvtkCharts.so.5.8.0 /usr/local/lib/libpcl_common.so /usr/local/lib/libpcl_octree.so /usr/local/lib/libpcl_io.so /usr/local/lib/libpcl_kdtree.so /usr/local/lib/libpcl_search.so /usr/local/lib/libpcl_sample_consensus.so /usr/local/lib/libpcl_filters.so /usr/local/lib/libpcl_features.so /usr/local/lib/libpcl_visualization.so /usr/local/lib/libpcl_ml.so /usr/local/lib/libpcl_segmentation.so /usr/local/lib/libpcl_people.so /usr/local/lib/libpcl_keypoints.so /usr/local/lib/libpcl_outofcore.so /usr/local/lib/libpcl_stereo.so /usr/local/lib/libpcl_registration.so /usr/local/lib/libpcl_surface.so /usr/local/lib/libpcl_recognition.so /usr/local/lib/libpcl_tracking.so -lpthread -lconsole_bridge /usr/local/lib/libopencv_xphoto.so.3.1.0 /usr/local/lib/libopencv_xobjdetect.so.3.1.0 /usr/local/lib/libopencv_tracking.so.3.1.0 /usr/local/lib/libopencv_surface_matching.so.3.1.0 /usr/local/lib/libopencv_structured_light.so.3.1.0 /usr/local/lib/libopencv_stereo.so.3.1.0 /usr/local/lib/libopencv_sfm.so.3.1.0 /usr/local/lib/libopencv_saliency.so.3.1.0 /usr/local/lib/libopencv_rgbd.so.3.1.0 /usr/local/lib/libopencv_reg.so.3.1.0 /usr/local/lib/libopencv_plot.so.3.1.0 /usr/local/lib/libopencv_optflow.so.3.1.0 /usr/local/lib/libopencv_ximgproc.so.3.1.0 /usr/local/lib/libopencv_line_descriptor.so.3.1.0 /usr/local/lib/libopencv_hdf.so.3.1.0 /usr/local/lib/libopencv_fuzzy.so.3.1.0 /usr/local/lib/libopencv_dpm.so.3.1.0 /usr/local/lib/libopencv_dnn.so.3.1.0 /usr/local/lib/libopencv_datasets.so.3.1.0 /usr/local/lib/libopencv_text.so.3.1.0 /usr/local/lib/libopencv_face.so.3.1.0 /usr/local/lib/libopencv_ccalib.so.3.1.0 /usr/local/lib/libopencv_bioinspired.so.3.1.0 /usr/local/lib/libopencv_bgsegm.so.3.1.0 /usr/local/lib/libopencv_aruco.so.3.1.0 /usr/local/lib/libopencv_viz.so.3.1.0 /usr/lib/libvtkGenericFiltering.so.5.8.0 /usr/lib/libvtkGeovis.so.5.8.0 /usr/lib/libvtkCharts.so.5.8.0 /usr/lib/libvtkViews.so.5.8.0 /usr/lib/libvtkInfovis.so.5.8.0 /usr/lib/libvtkWidgets.so.5.8.0 /usr/lib/libvtkVolumeRendering.so.5.8.0 /usr/lib/libvtkHybrid.so.5.8.0 /usr/lib/libvtkParallel.so.5.8.0 /usr/lib/libvtkRendering.so.5.8.0 /usr/lib/libvtkImaging.so.5.8.0 /usr/lib/libvtkGraphics.so.5.8.0 /usr/lib/libvtkIO.so.5.8.0 /usr/lib/libvtkFiltering.so.5.8.0 /usr/lib/libvtkCommon.so.5.8.0 -lm /usr/lib/libvtksys.so.5.8.0 -ldl /usr/local/lib/libopencv_videostab.so.3.1.0 /usr/local/lib/libopencv_superres.so.3.1.0 /usr/local/lib/libopencv_stitching.so.3.1.0 /usr/local/lib/libopencv_xfeatures2d.so.3.1.0 /usr/local/lib/libopencv_shape.so.3.1.0 /usr/local/lib/libopencv_photo.so.3.1.0 /usr/local/lib/libopencv_cudastereo.so.3.1.0 /usr/local/lib/libopencv_cudaoptflow.so.3.1.0 /usr/local/lib/libopencv_cudaobjdetect.so.3.1.0 /usr/local/lib/libopencv_cudalegacy.so.3.1.0 /usr/local/lib/libopencv_objdetect.so.3.1.0 /usr/local/lib/libopencv_cudaimgproc.so.3.1.0 /usr/local/lib/libopencv_cudafeatures2d.so.3.1.0 /usr/local/lib/libopencv_cudawarping.so.3.1.0 /usr/local/lib/libopencv_cudafilters.so.3.1.0 /usr/local/lib/libopencv_cudacodec.so.3.1.0 /usr/local/lib/libopencv_cudabgsegm.so.3.1.0 /usr/local/lib/libopencv_video.so.3.1.0 /usr/local/lib/libopencv_cudaarithm.so.3.1.0 /usr/local/lib/libopencv_calib3d.so.3.1.0 /usr/local/lib/libopencv_features2d.so.3.1.0 /usr/local/lib/libopencv_highgui.so.3.1.0 /usr/local/lib/libopencv_videoio.so.3.1.0 /usr/local/lib/libopencv_ml.so.3.1.0 /usr/local/lib/libopencv_imgcodecs.so.3.1.0 /usr/local/lib/libopencv_imgproc.so.3.1.0 /usr/local/lib/libopencv_flann.so.3.1.0 /usr/local/lib/libopencv_core.so.3.1.0 /usr/local/lib/libopencv_cudev.so.3.1.0 -Wl,-rpath,/usr/local/cuda-7.5/lib64:/usr/local/zed/lib:/usr/local/lib:/opt/ros/indigo/lib:/home/xepost/catkin_ws/devel/lib
After the compilation is done I get a slightly message, but the result is fail again
ZED SDK >> (Init) Best GPU Found : GeForce GTX 780 Ti , ID : 0
ZED SDK >> (Init) Disparity mode has been set to QUALITY
ZED SDK >> (Init) Creating ZED GPU mem...
ZED SDK >> (Init) Starting Self-Calibration in background...
ZED SDK >> (Init) Done...
[ INFO] [1467027443.894571349]: SUCCESS
[ INFO] [1467027445.901814019]: Reconfigure confidence : 80
[camera/zed_wrapper_node-3] process has died [pid 11234, exit code -11, cmd /home/xepost/catkin_ws/devel/lib/zed_wrapper/zed_wrapper_node __name:=zed_wrapper_node __log:=/home/xepost/.ros/log/82c4a2be-3c5b-11e6-a87d-ac220b262275/camera-zed_wrapper_node-3.log].
Thanks for the help!!
from zed-ros-wrapper.
Hi,
you shouldn't rename it the cv_bridge to cv3_bridge, just build the whole vision_opencv in your workspace and source that workspace.
If you really want to rename the package, you should also change the package dependency in zed CMakeList.txt and package.xml, but I am not sure wheather that will cause issue.
Another bad thing about changing it is, other package may still try to use cv_bridge for opencv2 but you don't have it any more.
from zed-ros-wrapper.
Hi Zeng,
I have mentioned before but I already updated the cv_bridge to cv3_bridge in the cmake and packacage.xml. For not having ocv2 even if I install OCV3, libraries belonging to ros for ocv still remains(ocv2.4.8) inside the system.
I have sent an email to zed support lets see what they say...
from zed-ros-wrapper.
Hi,
I thought you only changed the CMakeList and package.xml in cv_bridge.
I think you should try build the whole vision_opencv package, instead of just cv_bridge.
At least it works for me, maybe I am using jade and it's different for indigo.
from zed-ros-wrapper.
Hi,
I had the same problem, with the exact same console output. In order to fix it, I took a look at the zed_wrapper code to find out how dependent it was from cv_bridge. I figured out that it was only used to convert the open_cv image to a ROS image message. So I took a breath, and I've extracted and adapted the only required method from the cv_bridge code to put it in the wrapper.
Now, the zed_wrapper is no more dependent of cv_bridge and my pull request #48 has been merged.
The main problem was that cv_bridge use its own opencv libraries located in a none standard folder, and not the system ones.
You can just pull the repo and re-compile the wrapper with catkin_make. ;)
from zed-ros-wrapper.
Hi nesnes,
Thanks for the update, great work! One think to add the user need to edit cmake line 32 to show the opencv3 build, for me it was:
find_package(OpenCV ${OCV_VERSION} COMPONENTS core highgui imgproc REQUIRED HINTS /home/xepost/opencv-3.1/build)
Also to make things run properly we need to make sure that OCV3 libraries are found by ZED SDK, following lines can be used for that:
my_build_dir=/home/$USER/opencv-3.1/build # dont forget to change your build dir!!!!!
sudo ln -s $my_build_dir/lib/libopencv*.1 /usr/lib/x86_64-linux-gnu/
If you do not want to clutter your lib current ZED SDK use only the following libs:
libopencv_video.so.3.1
libopencv_videoio.so.3.1
libopencv_imgproc.so.3.1
libopencv_imgcodecs.so.3.1
libopencv_highgui.so.3.1
libopencv_features2d.so.3.1
libopencv_core.so.3.1
libopencv_calib3d.so.3.1
Fixes #43
from zed-ros-wrapper.
Are you saying that his rapper no longer depends on ROS opencv ?
from zed-ros-wrapper.
It does need openCV, but it doesn't need cv_bridge anymore. It'll use the openCV found by find_package(opencv . . .)
in its cmake file.
from zed-ros-wrapper.
But can it use the one built standard with ROS Indigo ? Not OpenCV 3.1?
from zed-ros-wrapper.
The ZED SDK is using OpenCV 3.1, so the wrapper must use the same.
You have to install OpenCV 3.1 (required before installing the ZED SDK), and then 'catkin_make' the wrapper. It should work out-of-the-box.
from zed-ros-wrapper.
Strange that I never got an error on install not having OpenCV 3.1. Also I would recommend branching to ROS Kinetic as it defaults to OpenCV 3 where as Indigo is standard to 2.4. Just to keep to the ROS REP and portability .
from zed-ros-wrapper.
Related Issues (20)
- Object Detection on Rosbag Data HOT 1
- Depth image msg contains only zero values HOT 14
- ZED ros wrapper really slow on orin nano! HOT 3
- resolution mismatch for ros noetic HOT 1
- ZED streaming on long range ethernet HOT 1
- Filtered Depth Not published in ROS topic HOT 2
- ZED camera point cloud inaccuracy: white wall HOT 1
- Cannot catkin build with SDK 4.1 HOT 4
- Positional tracking GEN_2 strange behaviors: covariance values and randomly stopping publishing messages HOT 4
- ZED-ROS-ERROR:Invalid calibration file HOT 3
- Documentation update, openni_depth_mode is located in a yaml file not a launch file anymore
- Camera internal parameter problem
- Can´t catkin_make in Win10 ROS noetic HOT 1
- roslaunch hangs on "* Waiting for valid static transformations..." HOT 2
- separate downscale for depth and color (was available before) HOT 2
- rosbag recorded imu and image sampling intervals are not stable HOT 1
- Zed X Position tracking does not move when imu_fusion is True HOT 1
- Positional Tracking in ROS wrapper ZED2i
- Enable Dynamic Resolution Change for ZED Cameras in ROS2 Wrapper HOT 1
- Compilation fails with catkin_make -DCMAKE_BUILD_TYPE=Release HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zed-ros-wrapper.