I had the same problem, using Ubuntu 16.04 LTS and ROS kinetic, and I had also recently installed the Phantom Omni's geomagic touch device driver. It turns out that the geomagic touch device driver adds its own Qt5 dynamic library files in /opt/geomagic_touch_device_driver/lib and then adds that to the LD_LIBRARY_PATH
. These are then used by rviz (among other Qt apps) instead of the correct ones. To find out if this applies to you as well, run:
echo $LD_LIBRARY_PATH
And if you see /opt/geomagic_touch_device_driver/lib included, that is the culprit. I personally didn't need any of the Qt functionality of the Phantom Omni, so I just stopped it from adding that directory to the LD_LIBRARY_PATH
which can be done by editing the following file:
sudo nano /etc/profile.d/geomagic.sh
to remove the export LD_LIBRARY_PATH
line, and possibly also the QT line. You will then have to reboot for these changes to take effect. This will possibly break your Phantom Omni if it needs the other non-Qt files in that directory. I just linked them to my /usr/lib
directory, and now I can run the Omni code and rviz.
It's really difficult to say without more information. What operating system/version are you running?
I'm using Ubuntu 16.04 LTS and ROS kinetic.
What are you attempting to do with rviz?
I am trying to get Phantom Omni device work with ROS. I followed the instructions stated here: http://fsuarez6.github.io/projects/ge... . However, when the launch node tries to start, the above-mentioned error appears.