Kawasaki-Robotics / khi_robot

ROS KHI robot meta-package
http://wiki.ros.org/khi_robot
BSD 3-Clause "New" or "Revised" License
55 stars 28 forks source link

Avoid suggesting users to run nodes as 'root' user #17

Closed gavanderhoorn closed 5 years ago

gavanderhoorn commented 5 years ago

In docs/ConnectingRealRobot.md, users are currently advised to run the bringup .launch files as the super user (ie: root) (here).

In general starting ROS nodes (and .launch files) as root is not recommended, and it is also typically not needed.

Suggestion: use the approach documented here, where a new group is created that gets sufficient privileges to set real-time scheduling priorities (among other things) without being root (using /etc/security/limits.conf).

d-nakamichi commented 5 years ago

Thanks for your suggestion. OK, I'll add description of real-time configuration using limits.conf.

k-okada commented 5 years ago

fyi another approach -> https://github.com/tork-a/minas/blob/master/minas_control/CMakeLists.txt#L42-L53

gavanderhoorn commented 5 years ago

With #15 merged, users are no longer advised / required to run their nodes as root.