Access i2c from a node, need sudo permission
Hi, my robot uses Jetson tx2 and there is a segment LED linked to tx2 i2c. From my ros node, I need to write something to the LED. I used libi2c in my c++ program to send data to LED. I just found however, I need to be a superuser to access i2c from my node. How can I run my node with "sudo"?
Thanks,
I've not setup something like this myself, but are you sure
root
access is necessary?Searching for
libi2c no root
leads me to (among others) Setting up I2C on Armbian/Odroid C1 which seems to suggest it should be possible to set things up such that non-root
access is also possible.