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
The torque values broadcasted from the /lbr/state/ topic (e.g., measured_torque and commanded_torque) seem to have inverted signs, i.e., measurements that are expected to be positive are negative, and vice versa.
I noticed this when visualising my published torque command in the /lbr/command/torque topic alongside the corresponding the commanded torque values fetched from FRI, which is publised via the /lbr/state/ topic.
The plot below shows the torque command (published by my node) and the commanded torque (fetched from FRI) over time. My commanding node publishes a gradually ramping torque command. The expected result is that both torque command and commanded torque should ramp up in the same direction, but they ramp up in opposite directions.
The measured_torque values are also negative when they are expected to be positive.
Is this supposed to happen? Has this been fixed in the rolling version? I currently cannot upgrade to rolling as I have to upgrade my OS, so a fix for the humble version would be much appreciated!
Below are details regarding my development environment.
ROS2 Distro: Humble
OS: Ubuntu 22.04
FRI Version: 1.11
The text was updated successfully, but these errors were encountered:
anselmo-parnada
changed the title
Measured and Commanded Torque in negative direction
Measured and Commanded Torque From /lbr/state Have Inverted Signs
Feb 19, 2025
sorry for the delay @anselmo-parnada and thanks for reporting this issue. What a strange find indeed and thank you for reporting. I am not quite convinced this an issue with this code. I'll have to investigate.
Hi @mhubii,
The torque values broadcasted from the
/lbr/state/
topic (e.g.,measured_torque
andcommanded_torque
) seem to have inverted signs, i.e., measurements that are expected to be positive are negative, and vice versa.I noticed this when visualising my published torque command in the
/lbr/command/torque
topic alongside the corresponding the commanded torque values fetched from FRI, which is publised via the/lbr/state/
topic.The plot below shows the torque command (published by my node) and the commanded torque (fetched from FRI) over time. My commanding node publishes a gradually ramping torque command. The expected result is that both torque command and commanded torque should ramp up in the same direction, but they ramp up in opposite directions.
The
measured_torque
values are also negative when they are expected to be positive.Is this supposed to happen? Has this been fixed in the
rolling
version? I currently cannot upgrade torolling
as I have to upgrade my OS, so a fix for thehumble
version would be much appreciated!Below are details regarding my development environment.
The text was updated successfully, but these errors were encountered: