From: Toby C. <tco...@pl...> - 2007-05-29 08:24:56
|
In that case it looks like its something to do with the USB interactions, from memory the driver uses libusb to perform some fairly low level interactions with the USB bus, and hasnt been widely used (i.e. I wrote and used it with a single IMU and so their could be some interactions with different systems I didnt come across). What kernel and distribution are you using? and have you confirmed you can use the device with the provided software? Toby Harmon P. wrote: > Sorry I did not specify, but both the client code and the player cfg > file were executed as root, and still get the same error. > -Drew > > On 5/28/07, *Toby Collett* <tco...@pl... > <mailto:tco...@pl...>> wrote: > > You may have to run player as suid or root to work with the nIMU, > > Toby > > Harmon P. wrote: > > Hi, I'm currently trying to get Mem-Sense' Nano IMU to work in > player > > and running into some trouble. The hardware is the nIMU as an I2C > > device connected through the computer through the USB dongle. I am > > currently running player 2.0.3 cvs'd from the begining of May, under > > 2.6.20-gentoo-r6. > > > > Here's the cfg file: nimu2.cfg > > > > driver > > ( > > name "nimu" > > provides ["imu:0"] > > data_packet_type 2 > > ) > > > > > > Client Code: imutest.cc > > > > #include <libplayerc++/playerc++.h> > > #include <stdio.h> > > #include <iostream> > > #include <vector.h> > > #include "args.h" > > > > > > int main(int argc, char **argv) > > { > > parse_args(argc, argv); > > using namespace PlayerCc; > > PlayerClient robot(gHostname, gPort); > > ImuProxy im(&robot, gIndex); > > > > float data; > > > > while(1) > > { > > robot.Read(); > > sleep(10); > > > > data = im.GetXAccel(); > > > > cout << data << endl; > > > > } > > } > > > > Resulting Error: > > > > player nimu2.cfg > > > > * Part of the Player/Stage/Gazebo Project [ > > http://playerstage.sourceforge.net]. > > * Copyright (C) 2000 - 2006 Brian Gerkey, Richard Vaughan, > Andrew Howard, > > * Nate Koenig, and contributors. Released under the GNU General > Public > > License. > > * Player comes with ABSOLUTELY NO WARRANTY. This is free software, > > and you > > * are welcome to redistribute it under certain conditions; see > COPYING > > * for details. > > > > Listening on ports: 6665 > > accepted TCP client 0 on port 6665, fd 6 > > Error setting configuration: -16 (could not set config 1: Device or > > resource busy) > > warning : subscription failed for device imu:0 > > closing TCP connection to client 0 on port 6665 > > > > > > ./imutest > > calling connect > > done > > playerc error : requested [1] access, but got [3] access > > terminate called after throwing an instance of > 'PlayerCc::PlayerError' > > Aborted > > > > > > I appreciate the help, thanks folks! > > -Drew > > > > > > > ------------------------------------------------------------------------ > > > > > ------------------------------------------------------------------------- > > > This SF.net email is sponsored by DB2 Express > > Download DB2 Express C - the FREE version of DB2 express and take > > control of your XML. No limits. Just data. Click to get it now. > > http://sourceforge.net/powerbar/db2/ > > > ------------------------------------------------------------------------ > > > > _______________________________________________ > > Playerstage-users mailing list > > Pla...@li... > <mailto:Pla...@li...> > > https://lists.sourceforge.net/lists/listinfo/playerstage-users > <https://lists.sourceforge.net/lists/listinfo/playerstage-users> > > > > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > <mailto:Pla...@li...> > https://lists.sourceforge.net/lists/listinfo/playerstage-users > > > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------- > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ------------------------------------------------------------------------ > > _______________________________________________ > Playerstage-users mailing list > Pla...@li... > https://lists.sourceforge.net/lists/listinfo/playerstage-users > |