Skip to content

Restarting Device fails #206

@linknum23

Description

@linknum23

While working on reducing the processor load of the iai_kinect2 interface (The plan is to acquire images at a rate of .25 FPS) I noticed that the kinect device fails if it is restarted. If restarted, a near endless stream of messages like this appear:

[DepthPacketStreamParser::handleNewData] remaining data should be 8 bytes but is 11231
[DepthPacketStreamParser::handleNewData] working buffer full, resetting it!

The maintainer suggested that I post here as it was problem with this library. To reproduce this bug simply insert a start(),stop() pair in the shut down code (Protonect.cpp,main()) as shown below.

dev->stop();
dev->start();
libfreenect2::this_thread::sleep_for(libfreenect2::chrono::milliseconds(200));
dev->stop();
dev->close();

How hard would this be to fix? Is there a simpler way to reduce the load on the processor other than stopping and starting?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions