Ask Your Question
0

kinect for windows not detected in the ubuntu 12.04 hydro

asked 2014-05-07 18:51:56 -0500

Rizwan gravatar image

hello, this is rizwan here please help my kinect for windows can be detected in the dmesg, but why is not detected in the lsusb, so because of that i cannot launch the rviz and display the kinect and usually it prompt me that device not connected. so please help me to teach me how to install and get the device run please. Thanks.

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2014-05-07 20:04:45 -0500

Ken_in_JAPAN gravatar image

updated 2014-05-08 04:14:18 -0500

At first, I think that you should check if kinect for windows works on ubuntu 12.04. I think that a kinect for Xbox360 is usually used on ROS. But, I found an article for Kinect for Windows on Ubuntu12.04 on this URL( http://choorucode.com/2013/07/23/how-... ). As far as I read the artcle, your problem seems to be drivers. For example, OpenNI 1.x is recommended on the article. It's not OpenNI 2.x. If you will install it, you might have other problems in the future. I recommend you to buy a kinect for XBox360.

edit flag offensive delete link more

Comments

to get the code is workable but installing the code .sr1@sr1-ThinkPad-T430:~/SensorKinect/Platform/Linux/Redist$ cd Sensor-Bin-Linux-x64-v5.1.2.1/ .bash: cd: Sensor-Bin-Linux-x64-v5.1.2.1/: No such file or directory .sr1@sr1-ThinkPad-T430:~/SensorKinect/Platform/Linux/Redist $ sudo ./install.sh .sudo: ./install.sh: command not found Thanks for the help but is still not able to work.

Rizwan gravatar image Rizwan  ( 2014-05-07 22:17:47 -0500 )edit

You said that you installed the code. What does No such file or directory mean? I think that It's a meaning of not downloading or not compiling. I'm sorry but I have something wrong?

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-05-08 04:39:11 -0500 )edit

i tried to run the code but the execution displayed me No such file or directory. Is still not working please help Thanks.

Rizwan gravatar image Rizwan  ( 2014-05-08 17:57:13 -0500 )edit

@Rizwan, Can you check your OpenNI version? Do you install SensorKinect drivers only? OpenNI 1.x is important!

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-05-08 18:56:27 -0500 )edit

Could you tell me command you input on a terminal?

~/SensorKinect/Platform/Linux/Redist
cd Sensor-Bin-Linux-x64-v5.1.2.1/
.bash
cd  Sensor-Bin-Linux-x64-v5.1.2.1/

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-05-08 19:07:26 -0500 )edit

when i key in "$ sudo ./install.sh", this command in the terminal gives me "no such files or directory".

Rizwan gravatar image Rizwan  ( 2014-05-08 20:58:55 -0500 )edit

i followed the steps but the last part at sudo ./install.sh is not working.

Rizwan gravatar image Rizwan  ( 2014-05-08 21:00:33 -0500 )edit

Can you check what describe in install.sh? and Can you look for files that install.sh points out in the folder you downloaded? This depends whether you understand Linux. This is not a problem on ROS.

Ken_in_JAPAN gravatar image Ken_in_JAPAN  ( 2014-05-09 04:02:03 -0500 )edit
0

answered 2014-05-11 15:03:43 -0500

Rizwan gravatar image

#!/bin/sh -e

usage=" Usage: $0 [OPTIONS] Installs PrimeSense Sensor Driver to current machine.

-i,--install Installs PrimeSense Sensor Driver (default mode) -u,--uninstall Uninstalls PrimeSense Sensor Driver. -c,--cross-compile-rootfs <path> Used for cross-compiling. Installs PrimeSense Sensor Driver to <path> instead of '/'. -h,--help Shows this help screen. "

OS_NAME=uname -s

#--avin mod-- case $OS_NAME in Darwin) MODULES="libXnDeviceSensorV2KM.dylib libXnDeviceFile.dylib" ;; *) MODULES="libXnDeviceSensorV2KM.so libXnDeviceFile.so" ;; esac

RULES_FILE="55-primesense-usb.rules" #--avin mod-- MODPROBE_BLACKLIST="blacklist-gspca-kinect.conf"

create file list

SCRIPT_DIR=pwd/dirname $0

LIB_FILES=ls $SCRIPT_DIR/Lib/* BIN_FILES=ls $SCRIPT_DIR/Bin/*

rootfs=

parse command line

while [ "$1" ]; do case $1 in -i|--install) install=yes ;; -u|--uninstall) uninstall=yes ;; -c|--cross-staging-dir) shift rootfs=$1 ;; -h|--help) echo "$usage" exit 0 ;; *) echo "Unrecognized option $1" exit 1 esac shift done

default mode is install

if [ ! "$install" = yes ] && [ ! "$uninstall" = yes ]; then install=yes fi

validity check

if [ "$install" = yes ] && [ "$uninstall" = yes ]; then echo "-i and -u flags cannot be used together!" exit 1 fi

INSTALL_LIB=$rootfs/usr/lib INSTALL_BIN=$rootfs/usr/bin INSTALL_ETC=$rootfs/usr/etc/primesense INSTALL_RULES=$rootfs/etc/udev/rules.d SERVER_LOGS_DIR=$rootfs/var/log/primesense/XnSensorServer #--avin mod-- MODPROBE_CONF_DIR=$rootfs/etc/modprobe.d

make all calls into OpenNI run in this filesystem

export OPEN_NI_INSTALL_PATH=$rootfs

make sure the staging dir OpenNI is the one being run

export LD_LIBRARY_PATH=$INSTALL_LIB

if [ "$install" = yes ]; then printf "Installing PrimeSense Sensor\n" printf "********\n\n"

# create config dir
printf "creating config dir $INSTALL_ETC..."
mkdir -p $INSTALL_ETC
printf "OK\n"

# Copy shared libraries
printf "copying shared libraries..."
cp $LIB_FILES $INSTALL_LIB
printf "OK\n"

# Copy executables
printf "copying executables..."
cp $BIN_FILES $INSTALL_BIN
printf "OK\n"

# register modules
for module in $MODULES; do
    printf "registering module '$module' with OpenNI..."
    $INSTALL_BIN/niReg -r $INSTALL_LIB/$module $INSTALL_ETC
    printf "OK\n"
done

# copy config file
printf "copying server config file..."

#--avin mod-- cp Config/GlobalDefaultsKinect.ini $INSTALL_ETC printf "OK\n"

# make server run as root
printf "setting uid of server..."
chown root $INSTALL_BIN/XnSensorServer
chmod +s $INSTALL_BIN/XnSensorServer
printf "OK\n"

# create server log dir
printf "creating server logs dir..."
mkdir -p $SERVER_LOGS_DIR
# make this dir readable and writable by all (we allow anyone to delete logs)
chmod a+w $SERVER_LOGS_DIR
printf "OK\n"

if [ "`uname -s`" != "Darwin" ]; then
    # install USB rules (so that PrimeSense sensors will be mounted with write permissions)
    printf "installing usb rules..."
    cp Install/$RULES_FILE $INSTALL_RULES
    printf "OK\n"
    #--avin mod--
    printf "installing modprobe blacklist..."
    cp Install/$MODPROBE_BLACKLIST $MODPROBE_CONF_DIR
    printf "OK\n"
fi

printf "\n*** DONE ***\n\n"

elif [ "$uninstall" = yes ]; then

printf "Uninstalling PrimeSense Sensor\n"
printf "******************************\n\n"

# unregister modules
for module in $MODULES; do
    printf "unregistering module '$module' from OpenNI..."
    if $INSTALL_BIN/niReg -u $INSTALL_LIB/$module; then
        printf "OK\n"
    fi
done

# delete shared libraries
printf "removing shared libraries..."
for filename in $LIB_FILES; do
    rm -f $INSTALL_LIB/`basename $filename`
done
printf "OK\n"

# delete executables
printf "removing executables..."
for filename in $BIN_FILES; do
    rm -f $INSTALL_BIN/`basename $filename`
done
printf "OK\n"

# delete config dir
printf "removing config dir..."
rm -rf $INSTALL_ETC ...
(more)
edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools

1 follower

Stats

Asked: 2014-05-07 18:51:56 -0500

Seen: 735 times

Last updated: May 11 '14