ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question
1

disabling kinect accelerometer

asked 2012-04-24 20:50:36 -0600

Amin gravatar image

updated 2016-10-24 09:00:13 -0600

ngrennan gravatar image

Hi ROS folks,

I wonder if there is any way to shut down kinect accelemotor. I need to mount the kinect in angular way and still have the full tilting range. Accelemotor prevents kinect to go towards up even though it is looking down! I looked at kinect_aux, there are all of the controls except this.

Any advice?

edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted
0

answered 2012-05-02 04:32:55 -0600

Amin gravatar image

Hi Again,

After some tests, I realized that even using the trick above you are not able to get more than -60 degrees on tilting kinect. In other words, kinect is able to tilt down -30 degrees itself (according to kinecy_aux stack) and at the same time you are also able to mount the kinect stand with about -30 degrees (more than this figure would not have effect since accelerometer does not allow kinect to go down further even though it can go!) so both of them would give 60 degrees.

My goal was to mount the kinect on the ceiling of my room in such a way that the FOV of kinect would be vertical against the ground. By doing that 60 degrees (30 tilting + 30 mounting angle) with a FOV of (43/2 ~ 22) I could get to -82 and not -90!

Any advice on how to come up with accelerometer is appreciated.

edit flag offensive delete link more
2

answered 2012-04-24 22:16:40 -0600

Amin gravatar image

I just found the answer.

in kinect_aux.cpp, simply comment out

angle = (angle<min_tilt_angle) ?="" min_tilt_angle="" :="" ((angle="">MAX_TILT_ANGLE) ? MAX_TILT_ANGLE : angle);

Recompile, and tilt more that 31 or less than -31. I guess you should be very careful to not to over tilt the kinect.

edit flag offensive delete link more

Comments

Where can I find this file?

Bublator gravatar image Bublator  ( 2013-09-03 23:13:23 -0600 )edit

Question Tools

Stats

Asked: 2012-04-24 20:50:36 -0600

Seen: 537 times

Last updated: May 02 '12