I'd like to drive an Elmo DC Whistle motor controller via Ethercat in ROS.
I've look around quite a bit and found several questions like #q256404, #q240550 or #q199494 which are basically all: use SOEM; or #q226843 which relates to ros_ethercat.
Actually, #q256404 and #q240550 are exact duplicats, but only answered with the generic "use soem" approach. (I am able to run the
simple_test client provided with soem, so the system is operational)
I don't want to depend on Orocos, afair, this is required when you want to use
rtt_soem which is in some answers as well.
However, I'd like to use
ros_control, if possible, so
ros_ethercat seems like a great start.
In the end, I do have problems about how to approach writing the driver, though. Does anyone now of an example how to use
CustomHW and CoE? Any help would be highly appreciated.
(System: Ubuntu 16.04.3 with ROS Kinetic)
Post score: 1
Comment by alextoind on 2018-10-23:
@mgruhler have you come up with something shareable? I have got an Elmo DC Whistle too and I'll need to integrate it in ROS in the following months.
Comment by mgruhler on 2018-11-21:
@alextoind Yes, I've been able to implement something. However, I cannot share the full code. I might be able to extract the relevant snippets though, if you are interested. However, I ended up using SOEM, not
ros_ethercat (I was lost on that one)...
Comment by alextoind on 2018-11-21:
@mgruhler thanks for the feedback! I've not started to work on it yet, but I'll try with SOEM then and I'll let you know ;)
Comment by Hao Deng on 2018-12-18:
@mgruhler My hardware connection is like this: I have four Gold Solo Whistle and one Gold Maestro, connected in EOE. My current issue is the SOEM could find any slaves, I am asking do we need the standard configuration in Elmo Application Studio or any special configuration for ROS connection? Thank
Comment by mgruhler on 2019-03-12:
@alextoind I know this is now really late to the party, but I finally managed to upload a gist of an adapted
simpletest file of SOEM to interface with two Elmo Gold DC Whistle.
You should be able to work from there (but most probably have resorted to some other solution or figured it out by now :-) )
Note that the most critical thing was to get the PDO mappings right...
Comment by alextoind on 2019-03-12:
You are great! I had few delays in the project so it is perfectly on time :D And, as you said, the PDO mappings were the most scary things to test. Thank you very very much!