Robotics StackExchange | Archived questions

90-oculus.rules might have broken 90-hydra.rules

Hi,

so I tried out Oculus dk2 in Gazebo, it worked, nice job! However, now I cannot connect my Razer Hydra device:

[Err] [Plugin.hh:153] Failed to load plugin libHydraPlugin.so: libHydraPlugin.so: cannot open shared object file: No such file or directory

I tried all my USB ports, reloaded the rules, restarted pc, removed all the rules and only added the hydra one, still no change.

I had this error before, and then I only managed to get it to work after I re-installed Ubuntu. I would like to avoid that this time :)

I looked over these rules, and is it normal that both use the same SUBSYSTEM name?

90-oculus.rules :
# Oculus HID Sensor naming and permissioning
KERNEL=="hidraw*", SUBSYSTEM=="hidraw", ATTRS{idVendor}=="2833", MODE="0666"

90-hydra.rules:
ATTRS{idProduct}=="0300",ATTRS{idVendor}=="1532",ATTR{bInterfaceNumber}=="00",TAG="hydra-tracker"
SUBSYSTEM=="hidraw",TAGS=="hydra-tracker", MODE="0666", SYMLINK+="hydra"

I am using 14.04 and Gazebo from default.

Cheers, Andrei

Asked by AndreiHaidu on 2015-03-27 08:17:05 UTC

Comments

Andrei, what is driving you to think that the problem is in udev? The message says the the plugin library was not found by the loader. Manually adjusting LD_LIBRARY_PATH helps?

Asked by Jose Luis Rivero on 2015-04-01 17:59:33 UTC

Wow, I don't know how I missed that, it does work, thanks :)

Asked by AndreiHaidu on 2015-04-09 06:14:06 UTC

Answers

These two files have worked simultaneously. As Jose pointed out, it looks like gazebo couldn't find the libhydraplugin. Can you check your GAZEBO_PLUGIN_PATH environment variable?

Asked by nkoenig on 2015-04-02 09:26:04 UTC

Comments

yup, that was the issue, my bad :)

Asked by AndreiHaidu on 2015-04-09 06:15:27 UTC