3Dconnexion giriş cihazları

From FreeCAD Documentation
Revision as of 10:56, 8 January 2019 by Skywalker21 (talk | contribs) (Created page with "* ... sonra libgtkmm-2.4-dev'i kurmanız gerekir. Ubuntu altında, bu şekilde yapılır:")
3Dconnexion SpaceNavigator

Sürücü kurulumu

Linux

FreeCAD Spacenav projesinden sürücüleri destekliyor. Bu, 3Dconnexion'un özel sürücüleri ile uyumlu açık kaynaklı bir sürücü oluşturmayı amaçlayan bir projedir.

Depodan yükleyin

Ubuntu
sudo apt-get install spacenavd
Fedora
sudo yum install spacenavd
Debian
apt-get install spacenavd libspnav-dev
  • spacenav needs these permissions
cp ~/.Xauthority /root/
  • Restart spnavd and FreeCAD
/usr/bin/spnavd_ctl x11 stop
/usr/bin/spnavd_ctl x11 start

Spacenav'ı kaynaktan derle

Dağıtımınız eski bir sürüm sağlayabilirse, bu önerilir.

Aşağıdaki dosyaları indirin:

./configure
make
  • Bu başarılı olursa, aşağıdaki 'root' (veya sudo ile öneki) komutlarını çalıştırın.
make install
./setup_init
/etc/init.d/spacenavd start
  • Bu, spacenav arka planını yükler, otomatik olarak sistem önyüklemesine yüklenecek şekilde yapılandırır ve yeniden başlatmaya gerek kalmadan arka plan programı başlatır.
  • Şimdi cihazınızın doğru bir şekilde algılandığını kontrol etmenin zamanı geldi. Cihazınız fişe takılı durumdayken, aşağıdaki komutu çalıştırın ve ardından takın.
tail -n100 -f /var/log/spnavd.log
  • Çıktı böyle görünüyorsa, devam edebilirsiniz.
Device detection, parsing /proc/bus/input/devices
trying alternative detection, querying /dev/input/eventX device names...
  trying "/dev/input/event1" ... Power Button
  trying "/dev/input/event2" ... 3Dconnexion SpaceNavigator
using device: /dev/input/event2
device name: 3Dconnexion SpaceNavigator
  • Şimdi libspnav-0.2.2 adlı dizine girin ve aşağıdaki komutları çalıştırın:
./configure
make
  • Aşağıdaki hatayı vererek başarısız olursa: ...
fatal error: gtk/gtk.h: No such file or directory
  • ... sonra libgtkmm-2.4-dev'i kurmanız gerekir. Ubuntu altında, bu şekilde yapılır:
sudo apt-get install libgtkmm-2.4-dev
  • When make has completed successfully, run the following command as root (or prefix with sudo.)
make install
  • Look in the directory libspnav-0.2.2/examples/. If you want to test your device, compile and run either one of the two examples.
  • Follow the same pattern to compile and install spnavcfg. Make sure to run spnavcfg as root, or no settings will be saved!

Restart

If sometimes navigator stops working, it is good to restart driver. To restart it, go to Terminal and execute:

sudo xhost +
sudo /etc/init.d/spacenavd restart

After that restart FreeCAD. On some distros this is necessary at each boot.

OSX

3Dconnexion input devices are supported on OS X, provided that FreeCAD is built and used on a system with the 3Dconnexion drivers installed.

Windows

As of version 0.13, 3D mouse is supported under windows. You need to have propriate drivers installed, but since support was developed on lower level, it will override settings you set in 3D Connexion control panel. However, most of those settings can be set in Tools>>Customize dialog, under Spaceball tabs.

Setting up FreeCAD

3D mouse support was made with spnav project on Linux, and on a very low level on Windows. This means there was no support for any settings for a device, since on Linux there is no good support for this, and on Windows it is overridden. This is why two additional pages were added to "Customize" dialog.

Spaceball Motion

In this tab you have ability to set up some of general space mouse settings. They include:

  • Global Sensitivity - Slider with ability to set global sensitivity
  • Dominant - if you enable dominant mode, only axes with highest move will be considered
  • Flip YZ - This option enables you to flip Y and Z axes on 3D mouse
  • Enable Translations - easy way to enable/disable translations
  • Enable Rotations - easy way to enable/disable rotations
  • Calibrate - enables you to calibrate space navigator. It is pressed while space navigator is not moved.
  • Set To Default - removes all settings and sets them to default.

Other than this, for each axes you have ability to set:

  • Enabled - Enable/Disable axes
  • Reverse - Reverse movement on axes
  • Sensitivity - slider with ability to set sensitivity

Spaceball Buttons

When you open this tab for the first time, it will be empty and unavailable. To activate it, you must press one of your space mouse buttons. After you do, list of buttons will appear on the left side, and list of commands will be available on the right side.

To connect certain command with a button, select button on the left side, and it's command on the right side. To clear commands from button, press "Clear".