-
Notifications
You must be signed in to change notification settings - Fork 90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cannot launch node as normal user, but can launch as root #129
Comments
Usually the last step in installing the Spinnaker library adds the current user to the right groups with permissions to the usb etc. Are you sure you have installed the library correctly? Are you able to run the camera using SpinView as a standard user? |
Yes, I'm able to use SpinView as a normal user. After rebooting the Jetson a few times it looks like the issue may have resolved itself for reasons I haven't yet identified. Re-running I don't have a good explanation for why it seems to be working now, but I'll keep an eye on it and leave another comment if it suddenly stops for some reason. |
Ideally you want to use the |
@civerachb-cpr I am closing the issue since we haven't heard from you. Pls re-open if necessary. |
Sorry about the radio silence. I was unable to replicate the original problem. Not sure what exactly happened, but it appears to have resolved itself, so it's all good now. Thanks! |
System Description
Camera Name and Model: 2x Blackfly S (USB3, connected via Sync cable)
Operating System: Ubuntu 18.04.5 w/ JetPack 4.5.1
Spinnaker Version: 2.2.0.48
ROS Version: Melodic
Computer details
Processor: Nvidia AGX Xavier
RAM: 32GB
Multiple Cameras Only
How is the triggering setup? Master/Slave (though not specifically applicable to my current problem -- see below)
For USB 3.0 cameras:
On same USB 3.0 bus or different buses? Same bus
Is the USB 3.0 hub externally powered? Yes
Do the cameras work with SpinView?
Yes
Describe the bug
Summary: I cannot launch the node/nodelet as a normal user, but I can launch it correctly if I am logged into a root shell.
Following the instructions in #89 I am able to build the node. However, when I try to launch the node I get the commonly-cited
[FATAL] [1622735926.930668531]: No cameras found!
failed assertion. But, if I run the following:the note starts up properly and I am able to see data;
rostopic hz
reports the data is coming in at about 20Hz and I can see the video stream in rviz.For simplicity I'm only trying to launch a single camera for the moment. Once I get these issues sorted out I'll re-enable the synchronization and launch the second camera.
I suspect that it's something as simple as a udev rule that I'm missing, but I'm not sure what the necessary rule is. I have the following rule defined in
/etc/udev/rules.d/50-spinnaker.rules
:Checking the normal user's groups:
I can see both camera devices:
Is this a known limitation of the driver and/or libspinnaker that it must be launched as root? Or is this something specific to the AGX Xavier and/or the version of JetPack that I'm using? Or is there an additional group that I need to add the user to that I've omitted?
Error Messages
Running from a root shell:
Running as a normal user:
The referenced log file does not exist, but here's the roslaunch log from the same directory:
roslaunch-cpr-mitre-6442.log
The text was updated successfully, but these errors were encountered: