ros-industrial / robotiq

Robotiq packages (http://wiki.ros.org/robotiq)
BSD 2-Clause "Simplified" License
228 stars 377 forks source link

roslaunch robotiq_c_model_control c_model_ethercat.launch failed #131

Open Eatapie opened 5 years ago

Eatapie commented 5 years ago

roslaunch robotiq_c_model_control c_model_ethercat.launch doesn't work. Problem is there's no ros node c_model_ethercat_node detected. I've added follwing lines in robotiq_c_model_control/CMakeLists.txt install(TARGETS c_model_ethercat_node RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION} )

Then I can run the node. However there is error: [ INFO] [1533813027.491517165]: Initializing etherCAT master [ERROR] [1533813027.491606984]: Could not initialize ethercat driver terminate called after throwing an instance of 'robotiq_ethercat::EtherCatError' what(): Could not initialize SOEM

So I follwed the instruction on https://github.com/ros-industrial/robotiq/tree/jade-devel/robotiq_ethercat sudo setcap cap_net_raw+ep c_model_ethercat_node

and got error again: Failed to set capabilities on file `c_model_ethercat_node' (Invalid argument) The value of the capability argument is not permitted for a file. Or the file is not a regular (non-symlink) file

Could someone please help me to fix this problem?

Eatapie commented 5 years ago

I think I get the solution. My executable file c_model_ethercat_node is linked somewhere else, and I should do sudo setcap cap_net_raw+ep real_adress

But still, please fix the problem that no node executable file can be generated(node c_model_ethercat_node detected).