Universal_Robots_ROS2_Driver icon indicating copy to clipboard operation
Universal_Robots_ROS2_Driver copied to clipboard

scaled JTC does not work on fake_hw

Open fmauch opened this issue 3 years ago • 3 comments

When trying to use the scaled JTC on Fake HW I get

[ros2_control_node-1] terminate called after throwing an instance of 'std::underflow_error'
[ros2_control_node-1]   what():  addition leads to int64_t underflow

Obviously this needs to be further debugged, but I wanted to post it here as a first step.

fmauch avatar Jun 09 '22 12:06 fmauch

Update: It seems that all floating point io states generate a nan value when using fake_hw. @destogl do you know where this could come from? For example, the output of the /io_and_status_controller/tool_data is

...
tool_output_voltage: 0
tool_current: .nan
tool_temperature: .nan
tool_mode: 0

fmauch avatar Jun 09 '22 15:06 fmauch

I think we can remove the "galactic:" prefix from the title ─ I just tested this on ROS 2 Humble, and I am getting the same error message:

[ros2_control_node-1] terminate called after throwing an instance of 'std::underflow_error'
[ros2_control_node-1]   what():  addition leads to int64_t underflow

ferrolho avatar Aug 15 '22 16:08 ferrolho

@ferrolho thanks for adding this information

fmauch avatar Aug 15 '22 18:08 fmauch

This seems to be still open. I had to switch the SJTC to JTC on humble.

haider8645 avatar May 02 '23 09:05 haider8645

the scaled jtc should work on mock hardware (fake hardware on humble) by now.

fmauch avatar May 22 '24 10:05 fmauch