Author Topic: Project done: Head Tracking using the Nintendo Wii Remote (Wiimote) on Linux  (Read 12852 times)

Offline kwk

  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
Hey hey,

I wrote a C/C++ head-tracking application for Linux. Please, come and visit my website to learn more about it: http://kwk.plothe-kleine.de/?p=51.

You can download my software as source code or as a Debian/Ubuntu package.

Comments are welcome!



Offline kalkofe3

  • *
  • Posts: 1
  • Karma: +0/-0
    • View Profile
How is the remote connected under linux? Is there some kind of interface, that hands out the controller's data? If so, what data can be accessed?



Offline kwk

  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
How is the remote connected under linux? Is there some kind of interface, that hands out the controller's data? If so, what data can be accessed?

The Cwiid (http://abstrakraft.org/cwiid/wiki/libcwiid) project supplies a nice interface. You can either query the Wiimote's state or register a callback for events.

Code: [Select]
/* Establish a continous and non-blocking connection */
    g_wiimote = cwiid_connect(&g_bluetooth_address, CWIID_FLAG_CONTINUOUS|CWIID_FLAG_NONBLOCK);

Just take a look at my code. It's pretty easy, documented and straight forward.



Offline xirtus

  • *
  • Posts: 6
  • Karma: +0/-3
    • View Profile
wow, so I'm stupid, sorry. How do you take your source code and compile it for darwin and mac os x?



Offline kwk

  • *
  • Posts: 4
  • Karma: +0/-0
    • View Profile
wow, so I'm stupid, sorry. How do you take your source code and compile it for darwin and mac os x?

I think, Cwiid is linux only. But anyway, I have no Mac, so you must figure it out yourself.



Offline PixelPartner

  • *
  • Posts: 12
  • Karma: +0/-0
    • View Profile
Great to see it running on Linux

Can I use this kit (#2) for the head tracking:
http://www.PixelPartner.de/openKMQ.htm