作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
我在 Linux(特别是 Ubuntu 12.04)上使用 C++ 进行编码,并且想使用 PlayStation SixAxis Controller (PS3 附带的类型)作为输入设备,最好是通过蓝牙。
我的应用程序将 headless 运行。目标平台上没有运行窗口管理器。目标是 small robot它运行的是 Ubuntu Server 12.04,尽管我是在桌面上开发的。
是否有任何我可以使用的库或技术?
最佳答案
我目前的解决方案是在 ubuntu 12.04 上使用这个 ppa
sudo apt-add-repository ppa:falk-t-j/qtsixa
sudo apt-get update
sudo apt-get install sixad -y
# plug controller into machine (via wire)
sudo sixpair
# unplug controller
sixad --start
# hold PS button
然后我找到了你的 c++ library ,而且效果很好。我现在有六轴控制的机器人!
关于c++ - 在 Linux 上使用 C++ 访问 Sony Playstation SixAxis Controller ,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14512813/
我在 Linux(特别是 Ubuntu 12.04)上使用 C++ 进行编码,并且想使用 PlayStation SixAxis Controller (PS3 附带的类型)作为输入设备,最好是通过蓝
我是一名优秀的程序员,十分优秀!