3Dconnexion Eingabegeräte

From FreeCAD Documentation
Revision as of 09:30, 15 December 2019 by Maker (talk | contribs) (Replaced content with "=== OSX ===")
3Dconnexion SpaceNavigator

Treiberinstallation

Linux

FreeCAD unterstützt die Treiber des Projekts Spacenav. Dies ist ein Projekt mit dem Ziel, einen Open-Source Treiber zu entwickeln, der mit den proprietären Treibern von 3Dconnexion kompatibel ist.

Installation aus dem Paketarchiv

Ubuntu
sudo apt-get install spacenavd
Fedora
sudo yum install spacenavd
Debian
apt-get install spacenavd libspnav-dev
  • spacenav benötigt folgende Berechtigungen
cp ~/.Xauthority /root/
  • Neustart von spnavd und FreeCAD
/usr/bin/spnavd_ctl x11 stop
/usr/bin/spnavd_ctl x11 start

Kompiliere Spacenav aus der Quelle

Dies wird empfohlen, wenn deine Distribution eine veraltete Version bereitstellen könnte.

./configure
make
  • Wenn dies erfolgreich war, führe die folgenden Befehle aus als root (oder Präfix mit sudo.)
make install
./setup_init
/etc/init.d/spacenavd start
  • Dies installiert den spacenav-Dämon, konfiguriert ihn so, dass er automatisch beim Systemstart geladen wird und startet den Dämon, ohne neu starten zu müssen.
  • Jetzt ist es an der Zeit, zu überprüfen, ob dein Gerät ordnungsgemäß erkannt wird. Wenn dein Gerät nicht angeschlossen ist, führe den folgenden Befehl aus und stecke es dann ein.
tail -n100 -f /var/log/spnavd.log
  • Wenn die Ausgabe etwa so aussieht, kannst du fortfahren.
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
  • Gib nun das Verzeichnis libspnav-0.2.2.2 ein und führe die folgenden Befehle aus:
./configure
make
  • Wenn make mit folgendem Fehler fehlschlägt: ...
fatal error: gtk/gtk.h: No such file or directory
  • ... dann musst Du libgtkmm-2.4-dev installieren. Unter Ubuntu wird dies so gemacht:
sudo apt-get install libgtkmm-2.4-dev
  • Wenn make erfolgreich abgeschlossen wurde, führe den folgenden Befehl aus als root (oder Präfix mit sudo.)
make install
  • Schau in das Verzeichnis libspnav-0.2.2.2/examples/. Wenn du dein Gerät testen möchtest, kompiliere und führe eines der beiden Beispiele aus.
  • Folge dem gleichen Muster, um spnavcfg zu kompilieren und zu installieren. Achte jedoch darauf, spnavcfg als root auszuführen, sonst werden keine Einstellungen gespeichert!

Neustarten von spacenavd

Wenn der Navigator manchmal aufhört zu arbeiten, ist es gut, den Treiber neu zu starten. Um ihn neu zu starten, gehe zum Terminal und führe aus:

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

Danach starten Sie FreeCAD neu. Bei einigen Distributionen ist dies nach jedem Boot nötig.

Bekannte Probleme

Ein Benutzer berichtete im Forum und sah folgendes:

Spacenav daemon 0.6
 failed to open config file /etc/spnavrc: No such file or directory. using defaults.
 adding device.
 device name: 3Dconnexion SpacePilot
 using device: /dev/input/event5
 No protocol specified
 failed to open X11 display ":0.0"  

Die Abhilfe, die für sie funktionierte:

sudo cp ~/.Xauthority /root/
sudo spnavd_ctl x11 start
sudo systemctl restart spacenavd

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 3Dconnexion drivers installed.

Known Issue

There is an issue where 3Dconnexion sends duplicate scroll events to FreeCAD, which causes the view to jump. To fix it:

  1. Open 3Dconnexion Properties. You can double-click its icon in the Taskbar, next to the Windows clock.
  2. Click on the Advanced Settings button.
  3. Open FreeCAD or switch to an already-open FreeCAD window.
  4. Switch back to 3Dconnexion Advanced Settings. Confirm that it says "FreeCAD" in the heading.
  5. Uncheck all boxes on the page.

ref: https://freecadweb.org/tracker/view.php?id=1893

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".