New version (v0.4) of SensorKinect with MacOSX support

469 views
Skip to first unread message

avin

unread,
Jan 6, 2011, 8:12:14 PM1/6/11
to OpenNI
Hello all,

I have released a new version of my SensorKinect driver for OpenNI.

It includes all recent changes from the unstable branch of PrimeSense:
1) MacOSX support
2) MultiSensor support (Didn't test it, I only have one sensor).
3) Added binary installers for Mac & Linux.

It's located in:
https://github.com/avin2/SensorKinect/tree/unstable
Precompiled bins at:
https://github.com/avin2/SensorKinect/tree/unstable/Bin

To use it you will need to install the new unstable released of OpenNI
unstable and NITE unstable:
http://www.openni.org/downloadfiles/openni-binaries/20-latest-unstable
http://www.openni.org/downloadfiles/openni-compliant-middleware-binaries/33-latest-unstable

Also please follow the README files if you are installing on Linux/
MacOSX
(Use: "sudo ./install.sh" to install each package and do not forget to
install latest libusb)

I'm now working on adding led & motor support and will add that soon!
After that I want to work on the audio.

avin.

Tim Fischer

unread,
Jan 7, 2011, 8:15:22 AM1/7/11
to OpenNI
Hi Avin,

excellent work!

I have one question about the Motor Device showing up. Is there any
sample code how to control it or is it just a fake entry for now and i
should use freenect for the motor?

Thanks

Tim

George Toledo

unread,
Jan 7, 2011, 10:01:41 AM1/7/11
to openn...@googlegroups.com
Avin, I've gone through all of the steps. A few notes:

-Users will want to have the latest Java update installed first.

-There may be a prompt to configure python during the install of the macport lib stuff.

-The install.sh part needs to be done like this:

1: " cd /folder-path-to-install-goes-here "
then
2: " sudo sh install.sh "


...but, now I'm trying to check stuff. Here is where I ask a really ignorant question:

How are these OpenNI sample files supposed to be compiled on OS X? They don't look like Xcode projects. Is there a note about it somewhere? There isn't a readme that I can see in the dl, despite the note about reading the "read me" for instructions on the OpenNI site.

-gt


--
You received this message because you are subscribed to the Google Groups "OpenNI" group.
To post to this group, send email to openn...@googlegroups.com.
To unsubscribe from this group, send email to openni-dev+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/openni-dev?hl=en.




--
George Toledo

The information contained in this E-mail and any attachments may be confidential.
If you have received this E-mail in error, please notify us immediately by telephone or return E-mail.
You should not use or disclose the contents of this E-mail or any of the attachments for any purpose or to any persons.

takahashi

unread,
Jan 7, 2011, 10:30:07 AM1/7/11
to OpenNI
Hi avin,

Great work, Thanks!!!

I'm enjoying myself with sample applications of OpenNI and NITE on my
macs.

To work Sample-PointViewer, I have to modify every xml files in the
Nite-1.3.0.18/Data as follows.
Line 17: < MapOutputMode xRes="640" yRes="480" FPS="30"/>

On Jan 7, 10:12 am, avin <avinb...@gmail.com> wrote:
> Hello all,
>
> I have released a new version of my SensorKinect driver for OpenNI.
>
> It includes all recent changes from the unstable branch of PrimeSense:
>         1) MacOSX support
>         2) MultiSensor support (Didn't test it, I only have one sensor).
>         3) Added binary installers for Mac & Linux.
>
> It's located in:https://github.com/avin2/SensorKinect/tree/unstable
> Precompiled bins at:https://github.com/avin2/SensorKinect/tree/unstable/Bin
>
> To use it you will need to install the new unstable released of OpenNI
> unstable and NITE unstable:http://www.openni.org/downloadfiles/openni-binaries/20-latest-unstablehttp://www.openni.org/downloadfiles/openni-compliant-middleware-binar...

croeckers

unread,
Jan 7, 2011, 1:56:30 PM1/7/11
to OpenNI
First of alle thank you for the new version.
But im facing a problem with the new version (using latest unstable
openni)
When I start the NiViewer, the console output tells me:
"unknown usb device speed".
and the PrimeSensor-log gives:
" 2102 [INFO] XnLog.cpp 165 OpenNI version is 1.0.0
(Build 25)-
Win32 (Jan 6 2011 00:42:40)
2172 [INFO] XnLog.cpp 173 Log system
initialized. Console: 0,
File: 1, Severity: VERBOSE, Masks: ALL
7761 [VERBOSE] XnSensorServer.cpp 142 Server
is now listening
11243 [INFO] XnSensorServer.cpp 168 New client
trying to connect...
11862 [VERBOSE] XnServerSession.cpp 198 Client
1 requested to open
sensor \\?
\usb#vid_045e&pid_02b0#6&62a35e6&0&2#{c3b5f022-5a42-1980-1909-
ea72095601b1}
11920 [INFO] XnSensorsManager.cpp 94 Opening sensor
'\\?
\usb#vid_045e&pid_02b0#6&62a35e6&0&2#{c3b5f022-5a42-1980-1909-
ea72095601b1}'...
12459 [VERBOSE] XnSensor.cpp 154 Initializing
device sensor...
12544 [VERBOSE] XnDeviceModule.cpp 417
Configuring module 'Device'
from section 'Device' in file 'C:\Program Files\Prime Sense\Sensor
\Data
\GlobalDefaults.ini'...
16605 [INFO] XnDeviceModule.cpp 431 Module
'Device' configuration
was loaded from file.
16658 [INFO] XnProperty.cpp 151 Property
Device.ShareMode was
changed to 1.
20050 [VERBOSE] XnDeviceSensorIO.cpp 86
Connecting to USB device...
20088 [VERBOSE] XnDeviceSensorIO.cpp 104 Trying
to open sensor '\\?
\usb#vid_045e&pid_02b0#6&62a35e6&0&2#{c3b5f022-5a42-1980-1909-
ea72095601b1}'...
21744 [VERBOSE] XnUSBWin32.cpp 553 USB Driver
Version is: 3.1.0.4
21777 [VERBOSE] XnUSBWin32.cpp 568 USB Driver
Current Alt Setting
is: 0
21792 [WARNING] XnDeviceSensorIO.cpp 113 Device
is not high speed!
21804 [VERBOSE] XnDeviceSensorIO.cpp 308
Shutting down USB depth
read thread...
21816 [VERBOSE] XnDeviceSensorIO.cpp 318
Shutting down USB image
read thread...
21836 [VERBOSE] XnDeviceSensorIO.cpp 365 Device
closed successfully
87206 [ERROR] Win32Network.cpp 489 recv() failed
with winsock error
10054
87296 [ERROR] XnIONetworkStream.cpp 92 Got an error
while reading
network buffer: Xiron OS failed to receive a network buffer!
87334 [WARNING] XnServerSession.cpp 1080 Failed
processing client
request: Xiron OS failed to receive a network buffer!
87444 [WARNING] XnServerSession.cpp 1070 Client
1 socket was
closed. Closing session...
111560 [VERBOSE] XnSensorServer.cpp 319
Removing client 1...
111761 [VERBOSE] XnSensorServer.cpp 330 Client
1 removed
211590 [INFO] XnSensorServer.cpp 224 No sensors are
open and no
client is connected for 10000 ms. Shutting down..."

Does anyone have an idea about it?

On 7 Jan., 02:12, avin <avinb...@gmail.com> wrote:
> Hello all,
>
> I have released a new version of my SensorKinect driver for OpenNI.
>
> It includes all recent changes from the unstable branch of PrimeSense:
>         1) MacOSX support
>         2) MultiSensor support (Didn't test it, I only have one sensor).
>         3) Added binary installers for Mac & Linux.
>
> It's located in:https://github.com/avin2/SensorKinect/tree/unstable
> Precompiled bins at:https://github.com/avin2/SensorKinect/tree/unstable/Bin
>
> To use it you will need to install the new unstable released of OpenNI
> unstable and NITE unstable:http://www.openni.org/downloadfiles/openni-binaries/20-latest-unstablehttp://www.openni.org/downloadfiles/openni-compliant-middleware-binar...

George Toledo

unread,
Jan 7, 2011, 2:02:05 PM1/7/11
to openn...@googlegroups.com

Ah, nevermind, I see now that it looks like all the apps need to be run from terminal.

matti

unread,
Jan 8, 2011, 5:56:14 PM1/8/11
to OpenNI
Hi,

I'm having trouble getting any of the examples to work.

I always get the following error:
Open failed: File not found!
Press any key to continue . . .

I've tried compiling and reinstalling everything multiple times, but
without success.

I'm on a 15" MBP (Early 2008/ MacBook Pro 4,1)

Any help is much appreciated.

Matti

On Jan 7, 3:12 am, avin <avinb...@gmail.com> wrote:
> Hello all,
>
> I have released a new version of my SensorKinect driver for OpenNI.
>
> It includes all recent changes from the unstable branch of PrimeSense:
>         1) MacOSX support
>         2) MultiSensor support (Didn't test it, I only have one sensor).
>         3) Added binary installers for Mac & Linux.
>
> It's located in:https://github.com/avin2/SensorKinect/tree/unstable
> Precompiled bins at:https://github.com/avin2/SensorKinect/tree/unstable/Bin
>
> To use it you will need to install the new unstable released of OpenNI
> unstable and NITE unstable:http://www.openni.org/downloadfiles/openni-binaries/20-latest-unstablehttp://www.openni.org/downloadfiles/openni-compliant-middleware-binar...

John Stoner

unread,
Jan 9, 2011, 7:14:01 PM1/9/11
to OpenNI
I'm trying to build on my Mac. OSX 10.6.6, Macbook, Intel, dual core,
pretty reasonable machine, I think.

When I run the ./RedistMaker tool on just what I check out of
githunb, I get:

*********************************
* PrimeSense OpenNI Redist *
* 2011-01-09 17:32:21 *
*********************************
* Taking version...
.23sion is 1
* Building OpenNI...
../../../../Source/OpenNI/XnBaseNode.cpp:1: error: -malign-double
makes no sense in the 64bit mode
make[1]: *** [Release/XnBaseNode.o] Error 1
make: *** [OpenNI] Error 2
g++ -MD -MP -MT "./Release/XnBaseNode.d Release/XnBaseNode.o" -c -
malign-double -fPIC -fvisibility=hidden -O2 -DNDEBUG -msse3 -
I../../../../Include -I../../../../Source -I../../../../Source/
External/TinyXml -DXN_EXPORTS -o Release/XnBaseNode.o ../../../../
Source/OpenNI/XnBaseNode.cpp

When I search out the -malign-double occurence (in /Platform/Linux-x86/
Build/CommonMakefile) and remove it, I get a huge pile of compile
errors from Redistmaker. Notably:

* Building OpenNI...
In file included from ../../../../Include/XnOS.h:32,
from ../../../../Include/XnDataTypes.h:32,
from ../../../../Include/XnBaseNode.h:31,
from ../../../../Source/OpenNI/XnBaseNode.cpp:25:
../../../../Include/XnPlatform.h:70:3: error: #error OpenNI Platform
Abstraction Layer - Unsupported Platform!

In file included from ../../../../Include/XnStatusCodes.h:32,
from ../../../../Include/XnMacros.h:32,
from ../../../../Include/XnOS.h:33,
from ../../../../Include/XnDataTypes.h:32,
from ../../../../Include/XnBaseNode.h:31,
from ../../../../Source/OpenNI/XnBaseNode.cpp:25:
../../../../Include/XnStatus.h:38: error: ‘XnUInt32’ does not name a
type
../../../../Include/XnStatus.h:41: error: ‘XnStatus’ does not name a
type

and lots of stuff that looks like that.

I work mostly in Java and Python, so maybe there's a bunch of stuff
that I just don't know to do in C++ land, but I think I did everything
according to what the README said. I assumed the Linux instructions
applied to OSX.

On Jan 8, 4:56 pm, matti <matti.niinim...@gmail.com> wrote:
> Hi,
>
> I'm having trouble getting any of the examples to work.
>
> I always get the following error:
> Open failed: File not found!
> Press any key to continue . . .
>
> I've tried compiling and reinstalling everything multiple times, but
> without success.
>
> I'm on a 15" MBP (Early 2008/ MacBook Pro 4,1)
>
> Any help is much appreciated.
>
> Matti
>
> On Jan 7, 3:12 am, avin <avinb...@gmail.com> wrote:
>
> > Hello all,
>
> > I have released a new version of my SensorKinect driver for OpenNI.
>
> > It includes all recent changes from the unstable branch of PrimeSense:
> >         1) MacOSX support
> >         2) MultiSensor support (Didn't test it, I only have one sensor).
> >         3) Added binary installers for Mac & Linux.
>
> > It's located in:https://github.com/avin2/SensorKinect/tree/unstable
> > Precompiled bins at:https://github.com/avin2/SensorKinect/tree/unstable/Bin
>
> > To use it you will need to install the new unstable released of OpenNI
> > unstable and NITE unstable:http://www.openni.org/downloadfiles/openni-binaries/20-latest-unstabl......

Ziv Hendel

unread,
Jan 9, 2011, 7:27:20 PM1/9/11
to OpenNI
Hi John!
You seem to be using the stable version (1.0.0.23) which does not
support MacOSX.

You need to use the unstable version from:
https://github.com/OpenNI/OpenNI/tree/unstable
or
git clone https://github.com/OpenNI/OpenNI.git -b unstable

Precompiled bins are also available in:
http://www.openni.org/downloadfiles/openni-binaries/20-latest-unstable

Thanks,
Ziv.

Rhys Lewis

unread,
Jan 9, 2011, 8:23:04 PM1/9/11
to OpenNI
Matti

get the same thing when I double click on them from the finder. Have
you tried running them from the command line in the installed
directory?

eg:

cd OpenNI-Bin-MacOSX-v1.0.0.25/Samples/Bin/Release
./Sample-NiUserTracker

Regards,
Rhys Lewis


On Jan 9, 11:56 am, matti <matti.niinim...@gmail.com> wrote:
> Hi,
>
> I'm having trouble getting any of the examples to work.
>
> I always get the following error:
> Open failed: File not found!
> Press any key to continue . . .
>
> I've tried compiling and reinstalling everything multiple times, but
> without success.
>
> I'm on a 15" MBP (Early 2008/ MacBook Pro 4,1)
>
> Any help is much appreciated.
>
> Matti
>
> On Jan 7, 3:12 am, avin <avinb...@gmail.com> wrote:
>
>
>
>
>
>
>
> > Hello all,
>
> > I have released a new version of my SensorKinect driver for OpenNI.
>
> > It includes all recent changes from the unstable branch of PrimeSense:
> >         1) MacOSX support
> >         2) MultiSensor support (Didn't test it, I only have one sensor).
> >         3) Added binary installers for Mac & Linux.
>
> > It's located in:https://github.com/avin2/SensorKinect/tree/unstable
> > Precompiled bins at:https://github.com/avin2/SensorKinect/tree/unstable/Bin
>
> > To use it you will need to install the new unstable released of OpenNI
> > unstable and NITE unstable:http://www.openni.org/downloadfiles/openni-binaries/20-latest-unstabl......

mrtm3050

unread,
Jan 17, 2011, 4:02:57 PM1/17/11
to OpenNI
Thanks Avin and Ziv. Everything works well on my Mac.

As an aside, I could see a need to go between the RGB mode and the IR
mode without having to restart the program (changing "IR/Image" in the
SampleConfig file). Is there a way to switch modes programmatically?
The ROS code is able to seamlessly switch between the two to calibrate
both sensors. I've seen this done with the OpenKinect library as
well.

I apologize if the question has already been answered in another
thread.

Ziv Hendel

unread,
Jan 19, 2011, 5:06:16 PM1/19/11
to OpenNI
There's no problem with doing that.

OpenNI fully supports dynamic streams management.

You can check out the NiViewer sample code on how to close and open
different streams in runtime.

Thanks,
Ziv.
Reply all
Reply to author
Forward
0 new messages