Quantcast

What is patched in the OpenNI Binaries

classic Classic list List threaded Threaded
12 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

What is patched in the OpenNI Binaries

Christoph Pacher
Hi,

Just saw that the OpenNI binaries that one can download from the PCL website say that they are patched. What hast been changed? should I use these even though I do not use PCL to capture coulds via OpenNI?

Thanks
Chris
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Jochen Sprickerhof
Administrator
* Christoph Pacher <[hidden email]> [2012-06-03 08:28]:
> Hi,

Hi Chris,

> Just saw that the OpenNI binaries that one can download from the PCL website
> say that they are patched. What hast been changed? should I use these even
> though I do not use PCL to capture coulds via OpenNI?

They have been patched to support the Kinect, different frame rates,
higher resolutions and more. You can find the complete patch here:
https://kforge.ros.org/openni/drivers.

> Thanks
> Chris

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

harshad1
Is this any different from avin/sensorkinect?
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Christoph Pacher
harshad1 wrote
Is this any different from avin/sensorkinect?
I am using Avin2's patched driver too. Are there any stability or performance patches we should know of? I looked over the patch descriptions and could not find any useful information.

thanks
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Pankaj Bhanu
In reply to this post by Jochen Sprickerhof
Hi Joseph,
I am trying to use the patched openni drivers for xbox kinect on arch linux. I installed it using
hg clone https://kforge.ros.org/openni/drivers openni_drivers -r 252
cd openni_drivers
sudo make install_engine

But when i run the openni viewer i.e. pcl_openni_viewer it pops this
"pcl_openni_viewer: symbol lookup error: /usr/lib/libpcl_io.so.1.6: undefined symbol: xnContextAddRef"

any ideas what could be wrong
thanks in advance

Jochen Sprickerhof wrote
* Christoph Pacher <[hidden email]> [2012-06-03 08:28]:
> Hi,

Hi Chris,

> Just saw that the OpenNI binaries that one can download from the PCL website
> say that they are patched. What hast been changed? should I use these even
> though I do not use PCL to capture coulds via OpenNI?

They have been patched to support the Kinect, different frame rates,
higher resolutions and more. You can find the complete patch here:
https://kforge.ros.org/openni/drivers.

> Thanks
> Chris

Cheers Jochen
_______________________________________________
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Jochen Sprickerhof
Administrator
* vivasvan <[hidden email]> [2012-06-25 05:18]:
> Hi Joseph,

Hi vivasvan,

> I am trying to use the patched openni drivers for xbox kinect on arch linux.
> I installed it using
> hg clone https://kforge.ros.org/openni/drivers openni_drivers -r 252

try -r 295, that should be the version used in the PPA.

> cd openni_drivers
> sudo make install_engine
>
> But when i run the openni viewer i.e. pcl_openni_viewer it pops this
> "pcl_openni_viewer: symbol lookup error: /usr/lib/libpcl_io.so.1.6:
> undefined symbol: xnContextAddRef"

You have to recompile PCL after changing OpenNI.

> any ideas what could be wrong
> thanks in advance

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Pankaj Bhanu
hi,
there seems to be a problem. my system is 64 bit but it tries to install 32 bit version.
the makefile contains 'lsb_release -sc' which is not available as arch is rolling release
is there a getaround or a different way to install the patched openni binaries in arch linux.

also i am getting the following error

cd build/openni/Platform/Linux-x86/CreateRedist && ./RedistMaker && cd -
  File "Redist_OpenNi.py", line 145
    print "failed to execute: " + cmd
                              ^
SyntaxError: invalid syntax
make[1]: *** [installed] Error 1

thanks
vivasvan
Jochen Sprickerhof wrote
* vivasvan <[hidden email]> [2012-06-25 05:18]:
> Hi Joseph,

Hi vivasvan,

> I am trying to use the patched openni drivers for xbox kinect on arch linux.
> I installed it using
> hg clone https://kforge.ros.org/openni/drivers openni_drivers -r 252

try -r 295, that should be the version used in the PPA.

> cd openni_drivers
> sudo make install_engine
>
> But when i run the openni viewer i.e. pcl_openni_viewer it pops this
> "pcl_openni_viewer: symbol lookup error: /usr/lib/libpcl_io.so.1.6:
> undefined symbol: xnContextAddRef"

You have to recompile PCL after changing OpenNI.

> any ideas what could be wrong
> thanks in advance
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Jochen Sprickerhof
Administrator
* vivasvan <[hidden email]> [2012-06-25 07:30]:
> hi,
> there seems to be a problem. my system is 64 bit but it tries to install 32
> bit version.

Can you explain a little more?

> the makefile contains 'lsb_release -sc' which is not available as arch is
> rolling release

Just put in some name, it's not important.

> is there a getaround or a different way to install the patched openni
> binaries in arch linux.

There seems to be an AUR, but I'm not a arch user.

> also i am getting the following error
>
> cd build/openni/Platform/Linux-x86/CreateRedist && ./RedistMaker && cd -
>   File "Redist_OpenNi.py", line 145
>     print "failed to execute: " + cmd
>                               ^
> SyntaxError: invalid syntax
> make[1]: *** [installed] Error 1

I guess python is pointing to 3.x, you need 2.x for this.

> thanks
> vivasvan

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Pankaj Bhanu
@Jochen thanks for the python tip, i managed to do it with python-virtualenvwrapper. make completed successfully. however sudo make install gives the following. error occurs at last line

sudo mkdir -p /usr/include/openni \
                                                        /etc/openni \
                                                        /usr/share/openni/doc \
                                                        /usr/share/openni/samples \
                                                        /usr/lib/pkgconfig
sudo cp -f ./openni/build/openni/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/Samples/Config/* /etc/openni/
sudo cp -f ./openni/build/openni/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/Lib/*.so /usr/lib/
sudo cp -r ./openni/build/openni/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/Include/* /usr/include/openni/
sudo cp -f ./openni/build/openni/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/Bin/* /usr/bin/
sudo cp -f ./openni/build/openni/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/Documentation/html/* /usr/share/openni/doc/
sudo cp -f ./openni/build/openni/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/Samples/Bin/x64-Release/Sample-* /usr/share/openni/samples/
sudo cp -f ./openni/build/openni/Platform/Linux/Redist/OpenNI-Bin-Dev-Linux-x64-v1.5.2.23/Samples/Bin/x64-Release/NiViewer /usr/share/openni/samples/
sudo sed s/__VERSION__/1.5.2.23~n/a/ ./CONTROL/openni.pc > /usr/lib/pkgconfig/openni-dev.pc
sed: -e expression #1, char 26: unknown option to `s'
make: *** [install_openni] Error 1

i checked the openni install.sh has no sed commands.
any ideas where is is going wrong
fyi i am using this wiki http://www.ros.org/wiki/openni_kinect for installation

thanks
vivasvan

Jochen Sprickerhof wrote
* vivasvan <[hidden email]> [2012-06-25 07:30]:

> also i am getting the following error
>
> cd build/openni/Platform/Linux-x86/CreateRedist && ./RedistMaker && cd -
>   File "Redist_OpenNi.py", line 145
>     print "failed to execute: " + cmd
>                               ^
> SyntaxError: invalid syntax
> make[1]: *** [installed] Error 1

I guess python is pointing to 3.x, you need 2.x for this.

> thanks
> vivasvan

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Jochen Sprickerhof
Administrator
* vivasvan <[hidden email]> [2012-06-26 00:29]:

> @Jochen thanks for the python tip, i managed to do it with
> python-virtualenvwrapper. make completed successfully. however sudo make
> install gives the following. error occurs at last line
>
> sudo sed s/__VERSION__/1.5.2.23~n/a/ ./CONTROL/openni.pc >
> /usr/lib/pkgconfig/openni-dev.pc
> sed: -e expression #1, char 26: unknown option to `s'
> make: *** [install_openni] Error 1
>
> i checked the openni install.sh has no sed commands.
> any ideas where is is going wrong
> fyi i am using this wiki http://www.ros.org/wiki/openni_kinect for
> installation

You set $DISTRO to "n/a" resulting in a superfluous / in the sed
expression, set it to arch or something and it should work.

> thanks
> vivasvan

Cheers Jochen
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Pankaj Bhanu
@Jochen, thank you for bearing with me, kinect is working smoothly now.
one last question though..
http://www.ros.org/wiki/openni_kinect  further mentions the following two steps

2. Checkout the source onto your ROS_PACKAGE_PATH:
hg clone https://kforge.ros.org/openni/openni_ros
3. Compile everything:
 rosmake openni_kinect --rosdep-install

what do they do?
i have rosinstall installed, but rosmake is still an unrecognized by bash. without going through the above steps my kinect is working fine (i checked it with pcl_openni_viewer). although it shouldn't concern me but  knowing this would help me increase an understanding about the process and i too may be of help to somebody.

thanks
vivasvan
Jochen Sprickerhof wrote
* vivasvan <[hidden email]> [2012-06-26 00:29]:
> sudo sed s/__VERSION__/1.5.2.23~n/a/ ./CONTROL/openni.pc >
> /usr/lib/pkgconfig/openni-dev.pc
> sed: -e expression #1, char 26: unknown option to `s'
> make: *** [install_openni] Error 1
>

You set $DISTRO to "n/a" resulting in a superfluous / in the sed
expression, set it to arch or something and it should work.

> thanks
> vivasvan

Cheers Jochen
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Re: What is patched in the OpenNI Binaries

Jochen Sprickerhof
Administrator
* vivasvan <[hidden email]> [2012-06-26 01:50]:

> @Jochen, thank you for bearing with me, kinect is working smoothly now.
> one last question though..
> http://www.ros.org/wiki/openni_kinect  further mentions the following two
> steps
>
> 2. Checkout the source onto your ROS_PACKAGE_PATH:
> hg clone https://kforge.ros.org/openni/openni_ros
> 3. Compile everything:
>  rosmake openni_kinect --rosdep-install
>
> what do they do?

This is only needed when you want to use openni with ros.
_______________________________________________
[hidden email] / http://pointclouds.org
http://pointclouds.org/mailman/listinfo/pcl-users
Loading...