Code Monkey home page Code Monkey logo

zed-pcl's Introduction

Stereolabs ZED - PCL

This sample shows how to acquire and display a 3D point cloud with PCL (Point Cloud Library).

Getting started

Prerequisites

Build the program

Download the sample and follow the instructions below: More

Build for Windows

  • Create a folder called "build" in the source folder
  • Open cmake-gui and select the source and build folders
  • Generate the Visual Studio Win64 solution
  • Open the resulting solution and change the solution configuration to Release
  • Build solution

Build for Linux

Open a terminal in the sample directory and execute the following command:

mkdir build
cd build
cmake ..
make

Run the program

  • Navigate to the build directory and launch the executable file

  • Or open a terminal in the build directory and run the sample :

      ./ZED\ with\ PCL [path to SVO file]
    

You can optionally provide an SVO file path (recorded stereo video of the ZED)

Troubleshooting

  • PCL view can start zoomed in, displaying only green and red colors. To adjust the viewport, simply zoom out using your mouse wheel or keyboard shortcuts.

Limitations

  • The point cloud conversion to PCL format is time consuming and will affect application running time.

Support

If you need assistance go to our Community site at https://community.stereolabs.com/

zed-pcl's People

Contributors

adujardin avatar miaekim avatar myzhar avatar nesnes avatar obraun-sl avatar p-yver avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

zed-pcl's Issues

‘SENSING_MODE’ has not been declared

Preliminary Checks

  • This issue is not a duplicate. Before opening a new issue, please search existing issues.
  • This issue is not a question, feature request, or anything other than a bug report directly related to this project.

Description

this repo cannot compile with new sdk

Steps to Reproduce

  1. Install ZED SDK 4.0
  2. git clone https://github.com/stereolabs/zed-pcl.git
  3. cd zed-pcl && mkdir build && cd build && cmake .. && make

Expected Result

successful compilation

Actual Result

Scanning dependencies of target ZED_with_PCL
[ 50%] Building CXX object CMakeFiles/ZED_with_PCL.dir/src/main.cpp.o
/home/ubuntu/zed-pcl/src/main.cpp: In function ‘void run()’:
/home/ubuntu/zed-pcl/src/main.cpp:163:22: error: ‘SENSING_MODE’ has not been declared
163 | if (zed.grab(SENSING_MODE::STANDARD) == ERROR_CODE::SUCCESS) {
| ^~~~~~~~~~~~
make[2]: *** [CMakeFiles/ZED_with_PCL.dir/build.make:82: CMakeFiles/ZED_with_PCL.dir/src/main.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:95: CMakeFiles/ZED_with_PCL.dir/all] Error 2
make: *** [Makefile:103: all] Error 2

ZED Camera model

ZED2i

Environment

OS: 20.04
GPU: RTX 3070

Anything else?

No response

ResourceExhaustedError : OOM when allocating tensor with shape ...

Hey,

I've just bought ZED stereo camera for object detection with tensorFlow trained model.
And whenever I pass a frame from ZED camera to tensorflow, It crashes.
Meanwhile, the same code works perfectly when I pass a frame from simple 1080p camera.

Maybe It's due to the callback. Can we get sync frames from ZED camera?
Would you please help me resolve the issue?

Segmentation fault

Hello, I have the zed sdk on a Nvidia Jetson Tx1 along with pcl(1.8.0) and opencv(2.4.13) build from source. I didn't get any errors when I ran cmake and make,but when I run the program I get a segmentation fault.

Running zed-pcl on ubuntu 16.04 not finding opencv

Hi I have been able to run the zed-opencv example on my ubuntu 16.04 system. However, when I try to build the zed-pcl example I get the error:

`CMake Warning at /home/teves/opencv/cmake/OpenCVConfig.cmake:166 (message):
Found OpenCV Windows Pack but it has no binaries compatible with your
configuration.

You should manually point CMake variable OpenCV_DIR to your build of OpenCV
library.
Call Stack (most recent call first):
CMakeLists.txt:30 (find_package)

CMake Error at CMakeLists.txt:30 (find_package):
Found package configuration file:

/home/teves/opencv/cmake/OpenCVConfig.cmake

but it set OpenCV_FOUND to FALSE so package "OpenCV" is considered to be
NOT FOUND.

-- Configuring incomplete, errors occurred!`

I dont understand why one version is able to find the correct opencv and the other is not. Also not sure why it says found windows pack as I do not have a windows version of opencv in that directory. Please advise.

Segmentation fault

I am able to compile this example, but get a segmentation fault when I try to run it.

I am working with:
Jetson TX2 (with Jetpack 3.2)
CUDA 9
ZED SDK 2.3.2
PCL 1.8.1

All of the other samples I have tried have run correctly, including the OpenCV interface

pcl input set not organized

I am using point clouds I captured with zed, but when I try to compute the normals with fast integral images method, I get the error:

[pcl::IntegralImageNormalEstimation::setInputCloud] Input dataset is not organized (height = 1).

Should something be tweaked in the while loop when we transfer the mat to the cloud?

Pointcloud has incorrect color and flickers on and off

When I run ZED with PCL on the zed camera or an .svo file, all of the points in the pointcloud are colored incorrectly and the entire pointcloud appears and dissappears. It seems like a bottom portion of the pointcloud is just randomly colored while the top as the correct set of colors but they are all on the wrong points with no discernible pattern. How can I fix this?

This was not happening before I updated to 1.0.0.

Also in your main.cpp, you have the lines:

int width = zed->getImageSize().width;
int height = zed->getImageSize().height;

before you call zed->init(params) which causes width and height to both be 0. Placing them after the call to init causes them to be set to the correct values.

zed-pcl in python

I want to processes the point cloud obtained from zed-mini in real time using python.
Can you please provide us the implementation of zed-pcl in python?

Thanks in advance!

No OpenNI2.dll was found

Hi,

I have installed the PCL-1.8.1-AllInOne-msvc2017-wn64, which has OpenNI2 in it. However, after I built the solution and ran it, the program returned a system error, which says "The code execution cannot proceed because OpenNI2.dll was not found. Reinstalling the program may fix this problem."

Consequently, I reinstalled the PCL and rebuilt the program. However, this problem still remains the same. Is there anyway to fix or debug this issue?

Thank-you,
Victor

PCL ZED 3D Viewer shows static red - green - black

Issue: PCL ZED 3D Viewer is only showing static red / green / black areas as shown on the screenshot

zed_pcl

Setup: Ubuntu 14.04, PCL-1.7 installed from binaries, ZED SDK 1.1, Titan X (Maxwell) GPU

Comments:

  • ZED camera is working without problems with zed-matlab, zed-ros-wrapper, zed-tracking-viewer, zed-opencv
  • GPU (driver, cuda) is correctly installed

Any explanation how this is coming about and what could be done?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.