Skip to content

gergondet/mc_neuron_mocap_plugin

 
 

Repository files navigation

mc_rtc plugin for neuron mocap

This plugin provides an access to Neuron MoCap data with an mc_rtc controller, the software Axis Neuron must be running on the same network as the controller

Installation

  1. Build and install the project

  2. Run using your mc_rtc interface of choice, add mocap_plugin to the Plugins configuration entry or enable the autoload option

Installing and running Axis Neuron on Wine


  1. Download Axis Neuron software :
wget https://files.neuronmocap.com/axis/Axis_Neuron_x64_3_8_42_8591_20180411034619617000_X64.zip
  1. Unzip:
unzip Axis_Neuron_x64_3_8_42_8591_20180411034619617000_X64.zip
  1. Install the msi file
wine msiexec.exe /i Axis_Neuron_x64_3_8_42_8591_20180411034619617000.msi
  1. Plug Axis Hub and see which USB it maps to (might change depending on how much usbs are currently connected)
ls -l /dev/serial/by-id  | grep Silicon | cut -d ">" -f 2

This returns something like '../../ttyUSB0', which is indeed '/dev/ttyUSB0'

  1. Find which port it connects to in Wine
ls -l ~/.wine/dosdevices | grep /dev/ttyUSB0 | cut -d ">" -f 2

Shall return something (eg ~/.wine/dosdevices/com1), otherwise see troubleshooting.

  1. Change the access write of that port
$> sudo chmod 666 ~/.wine/dosdevices/com1 
  1. Force-kill wine
wineserver -k 
  1. Run and check if everything is fine in Axis Neuron
wine "C:\Program Files\NOITOM\Axis Neuron\Axis Neuron.exe" 

It may happens that some DLLs are missing, in that case see troubleshooting.

Troubleshooting

The usb hub does not appear in Axis Neuron

  1. Check if Wine sees the hub:
ls -l ~/.wine/dosdevices/ | grep /dev/ttyUSB0
  1. If there is no input, allow wine to see that port

    • a) Run wine regedit
    • b) Go to HKEY_LOCAL_MACHINE/Wine/Ports
    • c) Right click > New > Value chain
    • d) Set name to COM1 and value to /dev/ttyUSB0
  2. Force-kill wine and relaunch axis

wineserver -k && wine "C:\Program Files\NOITOM\Axis Neuron\Axis Neuron.exe" 

Program fails with error 'unimplemented function msvcr120.dll'

  1. Install winetricks
sudo apt install winetricks
  1. Install vcrun2013
winetricks -q vcrun2013

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • C++ 79.6%
  • CMake 11.1%
  • Shell 5.6%
  • C 3.7%