[ros-users] accelerometer and tilt support + depth function

Melonee Wise mwise at willowgarage.com
Wed Nov 17 04:40:02 UTC 2010


I add set_tilt commands to libfreenect here:
https://github.com/ros-pkg-git/libfreenect/commits/master

<https://github.com/ros-pkg-git/libfreenect/commits/master>-Melonee

On Tue, Nov 16, 2010 at 9:30 AM, Oliver Kreylos <kreylos at cs.ucdavis.edu>wrote:

> On 11/16/2010 08:49 AM, garratt wrote:
> > Has anyone gotten the accelerometer to work for the Kinect?
> > Stéphane, I have your code (referenced below) with the accelerometer
> > support, but libusb_control_transfer segfaults whenever I run acc_get.
> >
> > I noticed that Oliver Kreylos's code calls read control with the
> > following parameters:
> >
> >   dataSize=readControl(0x40,0x32,0x0000,0x0000,data,sizeof(data));
>
> Hi Garratt,
>
> sorry for causing confusion. My libusb wrapper code has separate
> readControl and writeControl functions because I dislike the idea of
> using a bit flag to switch between read and write in libusb. As a side
> effect, my readControl function sets bit 7 on the read mask itself to
> make it transparent to the user; in other words, when I call
> readControl(0x40,...) libusb actually sees 0xC0 for the first parameter.
> So my code is in line with the other code you reference.
>
> I obviously should have documented that better.
>
> I know that my accelerometer code works otherwise; I've played around
> with them for a bit.
>
>   Oliver
>
> ------------------------------------------------------------------------
>       __        Dr. Oliver Kreylos
>      / /\       Institute for Data Analysis and Visualization (IDAV)
>     / /  \      University of California
>    / / /\ \     One Shields Avenue
>   / / /\ \ \    Davis, CA 95616, USA
>  / /_/__\ \ \   Phone: +1 (530) 754-9470
> /________\ \ \  Email: kreylos at cs.ucdavis.edu
> \___________\/  WWW  : http://idav.ucdavis.edu/~okreylos/ResDev
>
> _______________________________________________
> ros-users mailing list
> ros-users at code.ros.org
> https://code.ros.org/mailman/listinfo/ros-users
>



-- 
Senior Engineer
Intern Program Director
Willow Garage
68 Willow Rd.
Menlo Park, Ca 94025
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ros.org/pipermail/ros-users/attachments/20101116/945f10e8/attachment-0003.html>


More information about the ros-users mailing list