Ethercat-grant error with binary installed package

For context: Our package, adi_tmc_coe, which is already released on the ROS index, uses ethercat-grant to run without root privilege.

ethercat-grant is included in both CMakelist and package.xml of our package. When installing the package from source (dependencies were installed via $rosdep install command), everything works fine. However, we encounter error from ethercat-grant when installing our package via binary (dependencies were automatically installed when installing our package via $sudo apt install).

We also checked other packages in ROS index that use ethercat-grant, specifically rokubimini_ethercat. We tested both source and binary installations, and, like our package, we encountered the same error during the binary install.

Our analysis suggests that ethercat-grant is copying the executable (in this case, the shared object of the package) and modifying its permissions. However, since it is installed as a binary, the shared object is located in /opt/ros/noetic/ which requires root permissions thus the error we encountered.

Has anyone experienced the same issue? What suggestions do you have? Thank you!

This question is a great candidate to https://robotics.stackexchange.com/ , but I don’t think it belongs to this forum. Feel free to post a link to your RSE question here, though.

2 Likes

Thank you for your response.
I already posted the same question in RSE : https://robotics.stackexchange.com/questions/113537/ethercat-grant-error-with-binary-installed-package

1 Like