This simple update permits to handle prefixed joints. The prefix will be trimmed by taking only the 4 last characters of the actuator name. Should not affect existing setups not having prefixes.
Short motivation:
This change helps when the fake calibration yaml already contains joint and actuator names with prefixes.
Detailed motivation:
Indeed, in the case of the driver being started in a namespace (realtime loop in a namespace), BUT with hand_mapping set to empty (to avoid double /rh/rh/tactile), the prefix of the joints can then directly be given to calibration ctrl via the calibration yaml. Due to the low-level driver services requesting a name without prefix ( https://github.com/shadow-robot/sr-ros-interface-ethercat/issues/56 ), it needs to be trimmed off.
This simple update permits to handle prefixed joints. The prefix will be trimmed by taking only the 4 last characters of the actuator name. Should not affect existing setups not having prefixes.