Live data from Hacker News

Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

github.com

21–30 of 40 posts

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#21

Earlier quoted context omitted.

I'm not familiar with the SteamVR tracking modules that you linked, however from the link: > The CM1 contains all the circuitry necessary to convert SteamVR Tracking base station infrared light into a digital output that encodes the angle of the sensor from the base station. That implies that it's not a full location tracking solution by itself (angle only). The data sheet[0] doesn't seem to shed any further (ahem) l…

Correct, it's only going to give you a signal "upon incident light from an IR source once the threshold level for light intensity has been exceeded"[0]. What you are getting in this chip is all of the work Valve and Triad have done in improving the accuracy of that envelope signal. Essentially, the accuracy in the timing of that signal == the accuracy of the position. There's a really good talk from Steam Dev Days[1]…

Thanks that video is really good, watching now.

@ashtuchkin maybe link it from your page?

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#22
post #5

Earlier quoted context omitted.

The hot-swappable drone battery video is cool enough to be its own Shown HN submission. Would it be hard for the drone to be able to seamlessly switch between indoor/lighthouse tracking and outside/GPS tracking? How about the ability for the drone to orchestrate the battery swap autonomously with the charging unit? If you could add those two features you could produce a proof of concept video that would probably blow…

Thanks, that's nice to hear! Seamless switching is definitely doable and shouldn't be hard, just need some time to implement. I'm using PX4 autopilot and it's very friendly for adding new functionality. Orchestration is also close - in current demo both station and drone use Wifi to coordinate, so it's a matter of adding new logic. Currently the most limiting resource for that project is my time :) I'd be happy if ot…

Dude that video is an amazing demo. I left a comment on YT but you should take this further!

P.s. I think the I-term in your pid control loop is too high on your quadcopter, that oscillation isn't really affecting your flight control too badly but it heats the motors more than a stable tune would which reduces the service life of the permanent magnets in them.

Could be the P-term but the oscillation looks too slow for that, I guess one way to check for sure (assuming you don't have a blackbox on there) could be to increase your D-term and see what the response is

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#23

Hey, author here. I used the system described in the link for indoor stabilization of a drone, plus precise landing, to support an automatic battery swap station project (have a video there). Worked pretty well, so I decided to open-source it in hopes this would help fellow hackers. Let me know if you have any questions!

Very nice work! Do I understand correctly that a single sensor board as described here will get position, but can't get orientation? If so, how does the drone handle orienting itself correctly to land on the battery swapping station?

Onboard accelerometer/gyroscope which is part of the flight controller, most likely.

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#24
Fantastic!

Having been developing with the Vive for most of the last year for Left-Hand Path (http://store.steampowered.com/app/488760), and given I've got a lot of mocap experience before that, I can confirm that Lighthouse's tracking is ridiculously good.

It's not just as good as something like an Optitrack system: it's significantly better.

If this provides comparable tracking to what the Vive offers, it's an absolutely unbeatable price / performance combo.

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#25

Earlier quoted context omitted.

Thanks, that's nice to hear! Seamless switching is definitely doable and shouldn't be hard, just need some time to implement. I'm using PX4 autopilot and it's very friendly for adding new functionality. Orchestration is also close - in current demo both station and drone use Wifi to coordinate, so it's a matter of adding new logic. Currently the most limiting resource for that project is my time :) I'd be happy if ot…

Dude that video is an amazing demo. I left a comment on YT but you should take this further! P.s. I think the I-term in your pid control loop is too high on your quadcopter, that oscillation isn't really affecting your flight control too badly but it heats the motors more than a stable tune would which reduces the service life of the permanent magnets in them. Could be the P-term but the oscillation looks too slow fo…

Thanks, yeah I need to tune it more, just wanted to share sooner :) I do have a blackbox there, that should help.

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#26

Hey, author here. I used the system described in the link for indoor stabilization of a drone, plus precise landing, to support an automatic battery swap station project (have a video there). Worked pretty well, so I decided to open-source it in hopes this would help fellow hackers. Let me know if you have any questions!

Very nice work! Do I understand correctly that a single sensor board as described here will get position, but can't get orientation? If so, how does the drone handle orienting itself correctly to land on the battery swapping station?

Yes you're right, only position. I'm using acc/gyro/compass on the drone.

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#27

Hey, author here. I used the system described in the link for indoor stabilization of a drone, plus precise landing, to support an automatic battery swap station project (have a video there). Worked pretty well, so I decided to open-source it in hopes this would help fellow hackers. Let me know if you have any questions!

Hi, I have some questions: > 3d position accuracy: currently ~10mm; less than 2mm possible with additional work. Could you outline what is required to take your solution from 10mm to 2mm accuracy? what factors limit maximum accuracy? Presumably the lighthouse-derived position could be fused with IMU data for better temporal accuracy. Does your drone software do that? Thanks!

The geometry calculation is currently approximate, not taking into account that the laser planes have ~3cm offset from center, that's one. Timing precision is probably the next one - microseconds might not be enough and we can measure better.

Currently std dev of each position coord in rest is 1.9mm.

Fusion with IMU is the next level and is usually done later down the line because it needs to be tuned for particular model. Yes, the drone does that.

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#28
post #18

Hey, author here. I used the system described in the link for indoor stabilization of a drone, plus precise landing, to support an automatic battery swap station project (have a video there). Worked pretty well, so I decided to open-source it in hopes this would help fellow hackers. Let me know if you have any questions!

Did you have any issues with PX4 interpreting and fusing MOCAP data?

I needed to make some adjustments and fix some bugs there to make it work. It has the code, but it didn't work great indoor. I'll try to send these changes upstream when I have time. Let me know if you're interested in them - I can explain further.

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#29

Fantastic! Having been developing with the Vive for most of the last year for Left-Hand Path ( http://store.steampowered.com/app/488760 ), and given I've got a lot of mocap experience before that, I can confirm that Lighthouse's tracking is ridiculously good. It's not just as good as something like an Optitrack system: it's significantly better. If this provides comparable tracking to what the Vive offers, it's an ab…

I was really inspired by that too! The tracking is comparable, but not on par yet - you need multiple sensors and IMU fusion to achieve the smoothness of Vive. This is only a first step :)

Re: Show HN: DIY Position Tracking Using HTC Vive's Lighthouse

#30
post #17

Great project! When listening to an interview with Alan Yates[0] (main designer of the Lighthouse) I was thinking about an application like this. I recently did shop around for motion capture system (cameras tracking markers) and one of the cheapest systems with comparable performance to OP's came out to cost $5-8.5K. [0] http://embedded.fm/episodes/162

That's crazy :)
Post reply on HN