Closed subeiammar closed 2 years ago
Hi @subeiammar, I've never come across this, but I suspect it's related to environment variables, that's usually the case when running something as root doesn't work as expected.
I looked in the VimbaGigETL
install script, and it appears that there is a file located at /etc/profile.d/VimbaGigETL_64bit.sh
that contains the following:
#!/bin/sh
#Do not edit this file manually because it may be overwritten automatically.
export GENICAM_GENTL64_PATH=$GENICAM_GENTL64_PATH:"/home/ian/opt/Vimba_5_0/VimbaGigETL/CTI/x86_64bit"
I'm guessing this file doesn't get sourced when running as root, and the GENICAM_GENTL64_PATH
environment variable is missing.
You can try sourcing that file, or you could maybe try the -E
flag when running sudo
as described here.
Yeah I suspected it didn't have much to do with the driver itself, sorry about that. It had been a long day... :upside_down_face:
In any case, you've definitely pointed me in the right direction and I believe it's resolved. Thanks again!
I'm trying to run the driver for two Alvium 1800 U-1236c USB cameras in ROS Melodic for stereo imaging. I'm using this ROS1 driver as part of a bigger system of sensors and ROS drivers, and I need to run a lot of drivers as root to avoid permission issues.
With that said, I am able to run the driver for two cameras as a non-root user just fine with
roslaunch avt_vimba_camera test.launch
. Here's the relevant output:However, running the driver with
sudo bash -ic 'roslaunch avt_vimba_camera test.launch'
instead outputs:I realize that the transport layer is not loading properly, and that I can resolve this issue by not running the driver as root. I was just wondering why this issue would occur in the first place. Has anyone else seen something similar?