ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | Q&A
Ask Your Question

ODroid XU4 GPIO pins and ROS

asked 2018-05-21 01:09:38 -0500

updated 2018-05-21 01:21:20 -0500

Odroid running Ubuntu Mate 16.04 and ROS Kinetic. I have wiringPi2 installed for accessing the GPIO pins. I am able to use the GPIO pins through a Python script, but they require sudo access. I have a ROS node (written in Python) in which I want to access the GPIO pin data and publish to a topic. But, I am not able to do so, because wiringPi2 required sudo access, and ROS is not defined in root.

I have tried using wiringPiSetupSys() function which does not require sudo access, but that does not work i.e. I am not able to get the GPIO pin data without sudo access.

All the solutions to similar problems for Raspberry Pi platform don't seem to work for Odroid.


edit retag flag offensive close merge delete

2 Answers

Sort by ยป oldest newest most voted

answered 2018-05-29 04:36:03 -0500

updated 2018-06-01 04:09:04 -0500

Unfortunately, I could not find a fix to the problem with the exact specifications mentioned. However, when I tested the same code on a Raspberry Pi 3 with Raspbian, it works correctly.

So, I have concluded that the issue lies in the OS used i.e. Ubuntu Mate 16.04.

So, a solution might be to use Raspbian on Odroid itself. I am yet to test whether that works out.

Update : Raspbian doesn't exist as such for Odroid, so some other work around might be required.

edit flag offensive delete link more

answered 2019-07-11 18:52:02 -0500

jdwolk gravatar image

Re: sudo access, you can create a gpio group and add yourself to it:

sudo addgroup gpio

sudo usermod -a -G gpio <YOUR USER>

vi /etc/udev/rules.d/90-gpiomem.rules, add:

SUBSYSTEM=="exynos-gpiomem", GROUP="gpio", MODE="0660" `

Got this from

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Question Tools



Asked: 2018-05-21 01:09:38 -0500

Seen: 640 times

Last updated: Jul 11 '19