Since this recent ros2_control commit, the MockHardware component has a calculate_dynamics functionnality to derive state values from available data.
For instance, if only the position command interface is used, the velocity is automatically estimated by numerical derivation.
This feature is not yet used by the UR decription file, but only minor changes are required (see PR's modified files).
The only real change for the humble branch is in the ros2_control description:
Note: the PR is targeted at the humble branch, because the file structure has changed in the meantime (ros2_control_mock_hardware.xacro instead of ur.ros2_control.xacro), but the same applies to rolling/iron branches.
Since this recent ros2_control commit, the MockHardware component has a
calculate_dynamics
functionnality to derive state values from available data. For instance, if only the position command interface is used, the velocity is automatically estimated by numerical derivation. This feature is not yet used by the UR decription file, but only minor changes are required (see PR's modified files). The only real change for the humble branch is in the ros2_control description:Note: the PR is targeted at the humble branch, because the file structure has changed in the meantime (
ros2_control_mock_hardware.xacro
instead ofur.ros2_control.xacro
), but the same applies to rolling/iron branches.