Skip to content

Measured and Commanded Torque From /lbr/state Have Inverted Signs #249

Open
@anselmo-parnada

Description

@anselmo-parnada

Hi @mhubii,

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.

Image

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions