Giter VIP home page Giter VIP logo

sensor's People

Contributors

eddiecohen avatar openni avatar zivhendel 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  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  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

sensor's Issues

CreateRedist build failure on Ubuntu

When running ./CreateRedist on Ubuntu 15, I get the following error:

In file included from ../../../../Include/XnDDK.h:27:0,
                 from ../../../../Include/XnDevice.h:29,
                 from ../../../../Source/XnDeviceSensorV2/XnDeviceSensor.h:33,
                 from ../../../../Source/XnDeviceSensorV2/XnDeviceSensorInit.h:27,
                 from ../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:24:
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp: In constructor ‘XnSensorImageStream::XnSensorImageStream(const XnChar*, XnSensorObjects*)’:
../../../../Include/XnStreamParams.h:261:44: error: ‘XN_CAPABILITY_AUTO_EXPOSURE’ was not declared in this scope
 #define XN_STREAM_PROPERTY_AUTO_EXPOSURE   XN_CAPABILITY_AUTO_EXPOSURE
                                            ^
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:56:17: note: in expansion of macro ‘XN_STREAM_PROPERTY_AUTO_EXPOSURE’
  m_AutoExposure(XN_STREAM_PROPERTY_AUTO_EXPOSURE, XN_IMAGE_STREAM_DEFAULT_AUTO_EXPOSURE),
                 ^
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp: In member function ‘XnStatus XnSensorImageStream::SetColorTemperature(XnInt32)’:
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:729:17: error: ‘XN_PAUSE_AUTO_CONTROL’ was not declared in this scope
   if (nValue != XN_PAUSE_AUTO_CONTROL)
                 ^

The Redist directory is not created. Any help with this would be really appreciated! Could it be something wrong with my OpenNI install?

Compilation issue with private copy operator in XnDeviceSensorV2/XnServerSensorInvoker.h

Hi,

when compiling the snapshot at fc51d0a
for Linux, I get the following compilation error when running ./RedistMaker in the Platform/Linux/CreateRedist directory:

g++ -MD -MP -MT "./x64-Release/XnServerSession.d x64-Release/XnServerSession.o" -c -msse3 -O2 -DNDEBUG -I/usr/include/ni -I../../../../Include -I../../../../Source -I../../../../Source/XnCommon -DXN_DEVICE_EXPORTS -fPIC -fvisibility=hidden -o x64-Release/XnServerSession.o ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp
In file included from /usr/include/ni/XnOS.h:29:0,
from /usr/include/ni/XnTypes.h:29,
from ../../../../Include/XnStreamFormats.h:29,
from ../../../../Include/XnStreamParams.h:28,
from ../../../../Include/XnDDK.h:28,
from ../../../../Include/XnDevice.h:30,
from ../../../../Source/XnDDK/IXnDevice.h:28,
from ../../../../Source/XnDDK/XnDeviceBase.h:28,
from ../../../../Source/XnDeviceSensorV2/XnSensor.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:28,
from ../../../../Source/XnDeviceSensorV2/XnSensorsManager.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp:25:
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h: In member function ‘XnServerSensorInvoker::XnLockedServerStreamsHash& XnServerSensorInvoker::XnLockedServerStreamsHash::operator=(const XnServerSensorInvoker::XnLockedServerStreamsHash&)’:
/usr/include/ni/XnMacros.h:121:7: error: ‘void XnServerSensorInvoker::_XnServerStreamsHash::operator=(const XnServerSensorInvoker::_XnServerStreamsHash&)’ is private
void operator=(const TypeName&);
^
/usr/include/ni/XnHash.h:966:3: note: in expansion of macro ‘XN_DISABLE_COPY_AND_ASSIGN’
XN_DISABLE_COPY_AND_ASSIGN(ClassName);
^
/usr/include/ni/XnStringsHash.h:91:2: note: in expansion of macro ‘XN_DECLARE_HASH_DECL’
XN_DECLARE_HASH_DECL(decl, const XnChar*, ValueType, ClassName, XnStringsKeyTranslator, ValueTranslator, XnStringsKeyManager)
^
/usr/include/ni/XnStringsHash.h:106:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL’
XN_DECLARE_STRINGS_HASH_WITH_TRANSLATOR_DECL(decl, ValueType, ClassName, XN_DEFAULT_TRANSLATOR_NAME(ClassName))
^
/usr/include/ni/XnStringsHash.h:113:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH_DECL’
XN_DECLARE_STRINGS_HASH_DECL(, ValueType, ClassName)
^
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:94:2: note: in expansion of macro ‘XN_DECLARE_STRINGS_HASH’
XN_DECLARE_STRINGS_HASH(SensorInvokerStream, _XnServerStreamsHash);
^
In file included from ../../../../Source/XnDeviceSensorV2/XnSensorsManager.h:28:0,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.h:28,
from ../../../../Source/XnDeviceSensorV2/XnServerSession.cpp:25:
../../../../Source/XnDeviceSensorV2/XnServerSensorInvoker.h:108:17: error: within this context
this->m_hash = other.m_hash;

Problem with kinect driver, openNI or NITE software

Hello, I'm writing you this e-mail because I've an important problem with the kinect, when I launch any program which uses the kinect (like the FAAST software or a visual studio solution compilated executable), I have the error "Can't create any node of the requested type".

But what is strange is that in a first time (last week), I installed the kinect driver "avin2-SensorKinect-0124bd2" with the version 1.0.0.25 of OpenNI and the version 1.3.0.18 of Nite Bin (both are unstable version).
Everything worked very well with these softwares and driver, I had no problem.

And yesterday I wanted to update my software components and drivers, so I installed the kinect driver "avin2-SensorKinect-b7cd39d" with the version 1.1.0.38 of OpenNI and the version 1.3.1.3 of Nite Bin (both are stable version). It was from there that I got this error.

So I uninstalled everything (drivers, openNI and nite) to restore the old software components, but strangely, after installing my previous drivers and software, the error is always present...

How is it possible that this error is still there? If you have any idea or if you can help me to solve this problem, I thank you very much and I'm wainting for your response.

cordially,

Vince

USB events thread - failed to set priority ... Number devices connected: 2

Hello, I got a problem when I tried to
roslaunch openni_launch openni.launch
with kinect v1 on my ubuntu16.04

#-------------------------------------------------------------------

The main problem is
Warning: USB events thread - failed to set priority. This might cause loss of data...
[ INFO] [1532144223.689084031]: **Number devices connected: 2**
[ INFO] [1532144223.789816257]: ** 1. device on bus 002:08 is a SensorKinect (2ae) from PrimeSense (45e) with serial id '0' **
[ INFO] [1532144223.789871737]: ** 2. device on bus 002:08 is a SensorV2 (2ae) from PrimeSense (45e) with serial id 'A00366902406104A' **
[ INFO] [1532144223.790564154]: Searching for device with index = 2
[ INFO] [1532144223.826063687]: Opened 'SensorV2' on bus 2:8 with serial number 'A00366902406104A'
[ INFO] [1532144223.853133835]: rgb_frame_id = 'camera_rgb_optical_frame'
[ INFO] [1532144223.854356984]: depth_frame_id = 'camera_depth_optical_frame'
[ WARN] [1532144223.861493275]: Camera calibration file /home/neo/.ros/camera_info/rgb_A00366902406104A.yaml not found.
[ WARN] [1532144223.861670175]: Using default parameters for RGB camera calibration.
[ WARN] [1532144223.861811460]: Camera calibration file /home/neo/.ros/camera_info/depth_A00366902406104A.yaml not found.
[ WARN] [1532144223.861931850]: Using default parameters for IR camera calibration.

It showed the computer connected to two kinects. But I only had one kinect connected.

#------------------------------------------------------------------------------------------------------------------------

I Have asked on ROS ANSWER, here, but I get no reply.

#-----------------------------------------------------------------------------------------------------------------------

So I have to ask help from here.
I hope someone would help me with the issue. Thank you so much.

"Timeout error"

Hello, I'm writing you this e-mail because I've an important problem with the kinect, when I launch my program which uses the kinect (a visual studio solution compilated executable), I have the error "A timeout has occured when waiting for data".

I have the following software components and drivers :

  • the kinect driver "avin2-SensorKinect-28738dc"
  • the version 1.1.0.41 of OpenNI
  • the version 1.3.1.5 of Nite Bin

I tried different versions of everything (drivers, openNI and nite) but the error is stil there.

If you have any idea or if you can help me to solve this problem, I thank you very much and I'm wainting for your response.

cordially,

Vince

Use Listeners without SessionManager

Hi this post is more a request that an issue but i didn't find where to post it,

I wanted to use your excellents Listeners using information that i get from SkeletonJointPosition of OpenNi.
I've tried to create a sessionManager instance adding Listeners and use the forceSession giving the SkeletonPosition.Position 3DPoint (using LeftHand SkeletonJoin)
if works a bit but i've have a memory accessing violation after a moment trying to update SessionManager.
And i can't get info of ending session.

So i would like to create Listener an update manually using
updateMessage method.

But the parametre is an InPtr class and i don't know what to send (Point3D info ?, DepthGenerator info ?, Context info?)

Is it possible to do that?

Build against 1.5?

The readme says that I have to build against OpenNI 1.3.x, could I instead use OpenNI 1.5.x? If so can you update the readme, and if not do you have an idea of what I'd have to change to get it to work?

CreateRedist build failure on Ubuntu

When running ./CreateRedist on Ubuntu 15, I get the following error:

In file included from ../../../../Include/XnDDK.h:27:0,
                 from ../../../../Include/XnDevice.h:29,
                 from ../../../../Source/XnDeviceSensorV2/XnDeviceSensor.h:33,
                 from ../../../../Source/XnDeviceSensorV2/XnDeviceSensorInit.h:27,
                 from ../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:24:
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp: In constructor ‘XnSensorImageStream::XnSensorImageStream(const XnChar*, XnSensorObjects*)’:
../../../../Include/XnStreamParams.h:261:44: error: ‘XN_CAPABILITY_AUTO_EXPOSURE’ was not declared in this scope
 #define XN_STREAM_PROPERTY_AUTO_EXPOSURE   XN_CAPABILITY_AUTO_EXPOSURE
                                            ^
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:56:17: note: in expansion of macro ‘XN_STREAM_PROPERTY_AUTO_EXPOSURE’
  m_AutoExposure(XN_STREAM_PROPERTY_AUTO_EXPOSURE, XN_IMAGE_STREAM_DEFAULT_AUTO_EXPOSURE),
                 ^
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp: In member function ‘XnStatus XnSensorImageStream::SetColorTemperature(XnInt32)’:
../../../../Source/XnDeviceSensorV2/XnSensorImageStream.cpp:729:17: error: ‘XN_PAUSE_AUTO_CONTROL’ was not declared in this scope
   if (nValue != XN_PAUSE_AUTO_CONTROL)
                 ^

The Redist directory is not created. Any help with this would be really appreciated! Could it be something wrong with my OpenNI install?

Cannot find the Redist directory

I follow the compile guide. But after doing the command: ./CreateRedist. I cannot find the Redist directory. Thus, I cannot go on the further steps.
This is What shows on the screen after ./CreateRedist:
make[1]: Leaving directory /home/ros07/SensorKinect-unstable/Platform/Linux/Build/XnDDK' make: Leaving directory/home/ros07/SensorKinect-unstable/Platform/Linux/Build'

Can anybody solve this issue?

Broken RGB Image

I found a problem in the XnUncompressedBayerProcessor::OnEndOfFrame() which was causing RGB broken image. This was happening on windows 7 at least.

XnImageProcessor has the general framework to reject images if not enough data was collected, but since the bayer conversion is always done in OnEndOfFrame() regardless of how much data was collected, the size of the RGB buffer will always be the expected size.

void XnImageProcessor::OnEndOfFrame(const XnSensorProtocolResponseHeader* pHeader)
{
if (!m_bCompressedOutput)
{
// make sure data size is right
XnUInt32 nExpectedSize = CalculateExpectedSize();
if (GetWriteBuffer()->GetSize() != nExpectedSize)
{
xnLogWarning(XN_MASK_SENSOR_READ, "Read: Image buffer is corrupt. Size is %u (!= %u)", GetWriteBuffer()->GetSize(), nExpectedSize);
FrameIsCorrupted();
}
}

// call base
XnFrameStreamProcessor::OnEndOfFrame(pHeader);

}

I did something like this and now when the frames don't have the expected size the frame is thrown away

void XnUncompressedBayerProcessor::OnEndOfFrame(const XnSensorProtocolResponseHeader* pHeader)
{
XN_PROFILING_START_SECTION("XnUncompressedBayerProcessor::OnEndOfFrame")

xnOSEnterCriticalSection(&m_hLockCS);
try
{
    // if data was written to temp buffer, convert it now
    switch (GetStream()->GetOutputFormat())
    {
    case XN_OUTPUT_FORMAT_GRAYSCALE8:
        break;
    case XN_OUTPUT_FORMAT_RGB24:
        {
            if (m_UncompressedBayerBuffer.GetSize() != GetActualXRes() * GetActualYRes())
            {
                FrameIsCorrupted();
            }
            else
            {
                Bayer2RGB888(m_UncompressedBayerBuffer.GetData(), GetWriteBuffer()->GetUnsafeWritePointer(), GetActualXRes(), GetActualYRes(), 1, 0);
                                    GetWriteBuffer()->UnsafeUpdateSize(GetActualXRes()*GetActualYRes()*3); 
            }   
            m_UncompressedBayerBuffer.Reset();
        }
        break;
    }

    XnImageProcessor::OnEndOfFrame(pHeader);

}
catch (...)
{
}
xnOSLeaveCriticalSection(&m_hLockCS);
XN_PROFILING_END_SECTION

}

I saw some people think it happened more often under a heavy CPU load so I tried to simulate that by having the conversion take longer with a 50 ms sleep in Bayer.cpp before returning from Bayer2RGB888(). This caused the problem to happen a lot for us which was helpful in tracking the problem down. Before that sometimes it would happen several times in a row and other times we wouldn't see it for days.

This problem seems to be in both avin2's version and also in the non modded version from the OpenNI website (https://github.com/PrimeSense/Sensor/blob/unstable/Source/XnDeviceSensorV2/XnUncompressedBayerProcessor.cpp).

How do I go about submitting this code so it gets into different distributions?

Image registration is not working on primesense.

Hi,
I have 2 primesense caramine 1.09. I am using openni2. I have applied self.dev.set_image_registration_mode(openni2.c_api.OniImageRegistrationMode.ONI_IMAGE_REGISTRATION_DEPTH_TO_COLOR). It is working fine for one primesense and image registeration is done. But when I apply same code for second primesense, image registration is not happening for it.
What is the issue?

Thanks.

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.