You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[joint_state_publisher_gui-1] [INFO] [1733051122.369655512] [joint_state_publisher_gui]: Waiting for robot_description to be published on the robot_description topic...
[joint_state_publisher_gui-1] [INFO] [1733051122.387361215] [joint_state_publisher_gui]: Centering
[joint_state_publisher_gui-1] [INFO] [1733051122.495230202] [joint_state_publisher_gui]: Centering
[joint_state_publisher_gui-1] Traceback (most recent call last):
[joint_state_publisher_gui-1] File "/opt/ros/jazzy/lib/python3.12/site-packages/joint_state_publisher_gui/joint_state_publisher_gui.py", line 207, in initializeSliders
[joint_state_publisher_gui-1] self.centerEvent(None)
[joint_state_publisher_gui-1] File "/opt/ros/jazzy/lib/python3.12/site-packages/joint_state_publisher_gui/joint_state_publisher_gui.py", line 245, in centerEvent
[joint_state_publisher_gui-1] joint_info['slider'].setValue(self.valueToSlider(joint['zero'], joint))
[joint_state_publisher_gui-1] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[joint_state_publisher_gui-1] File "/opt/ros/jazzy/lib/python3.12/site-packages/joint_state_publisher_gui/joint_state_publisher_gui.py", line 255, in valueToSlider
[joint_state_publisher_gui-1] return int((value - joint['min']) * float(RANGE) / (joint['max'] - joint['min']))
[joint_state_publisher_gui-1] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[joint_state_publisher_gui-1] ValueError: cannot convert float NaN to integer
Then I get the below errors upon moving the sliders.
[rviz2-3] [ERROR] [1733051135.281374250] []: TF_NAN_INPUT: Ignoring transform for child_frame_id "test_link" from authority "Authority undetectable" because of a nan value in the transform (-nan -nan -nan) (-nan -nan -nan -nan)
[rviz2-3] [ERROR] [1733051135.281509904] []: TF_DENORMALIZED_QUATERNION: Ignoring transform for child_frame_id "test_link" from authority "Authority undetectable" because of an invalid quaternion in the transform (-nan -nan -nan -nan)
I think the infinite values for the limit cause this. I can not use a continuous joint in my case as Gazebo does not support it.
The text was updated successfully, but these errors were encountered:
Amronos
changed the title
joint_state_publisher_gui crashes on using revolute joints
joint_state_publisher_gui crashes on using revolute joints with inf limits in SDF
Dec 9, 2024
Amronos
changed the title
joint_state_publisher_gui crashes on using revolute joints with inf limits in SDF
joint_state_publisher_gui gives errors on using revolute joints with inf limits in SDF
Dec 9, 2024
To me, this is a Gazebo bug, and the correct answer is to use a continuous joint. What happens in Gazebo?
gazebosim/sdformat#326 does provide some details on this.
I don't really see a problem in supporting a revolute joint with infinite limits in joint_state_publisher/joint_state_publisher_gui till continuous joints are supported by Gazebo.
After continuous joints are supported by Gazebo, a warning or error could be added instead.
I have defined my revolute joint in SDF like this:
I get the following errors:
Then I get the below errors upon moving the sliders.
I think the infinite values for the limit cause this. I can not use a continuous joint in my case as Gazebo does not support it.
The text was updated successfully, but these errors were encountered: