Rclpy with sudo [closed]
I have a Raspberry Pi 3b+ with Ubuntu ARM and ROS2 installed. I have a python package that writes to a topic every two seconds and it works fine when I run it without sudo the thing is that i need to run it as sudo since i have to send messages of my I2C sensor to that topic making SMBUS not work without it. The message that i get is the following: "No module named 'rclpy'"
If possible: try to see whether there is a way to give your current
$USER
write access to the hw (ie: file in/dev
) instead. In most casessudo
is not needed, just access to the device file.