ROS Resources: Documentation | Support | Discussion Forum | Index | Service Status | ros @ Robotics Stack Exchange
Ask Your Question

Revision history [back]

https://github.com/iancoleman/python-iwlist isn't a ros node but makes it easy to to parse the output of iwlist which can be easily integrated into a node.

Then it's convenient to give permission to your user to use iwlist as root (it runs as a regular user, but doesn't return a list of every observed access point, just the one it is connected to, or ones it has logins for?)

sudo visudo -f /etc/sudoers.d/iwlist
myusername ALL=(root) NOPASSWD: /sbin/iwlist wlo1 scan

(not sure if leaving off the interface name and 'scan' still works, or if that is just good security practice to restrict usage)

I had to do this also (maybe the above rule isn't needed at all, just this?)

sudo chmod u+s /sbin/iwlist