Skip to content

Add Motor Temperature to stateExt and Convert PWM to Float#3188

Merged
randaz81 merged 3 commits intorobotology:masterfrom
GiulioRomualdi:temperature_state_ext
Jun 4, 2025
Merged

Add Motor Temperature to stateExt and Convert PWM to Float#3188
randaz81 merged 3 commits intorobotology:masterfrom
GiulioRomualdi:temperature_state_ext

Conversation

@GiulioRomualdi
Copy link
Copy Markdown
Member

After a discussion with @randaz81 and @traversaro, we decided to add motor temperature data to stateExt, streamed as a vector of floats. To avoid increasing the message size, we also decided to convert the PWM data from a vector of doubles to a vector of floats.

This pull request introduces several changes to the RemoteControlBoard and related components to support temperature data. The modifications affect data structures, methods, and interfaces to handle temperature readings properly.

The PR consists of two commits:

  • e889527: Modifies the message to add temperature data and converts the PWM vector to float.
  • a435ecd: Adds support for float32 conversion in Bottle. Without this, reading from the stateExt port results in the following error:
    [ERROR]  |yarp.os.impl.BottleImpl| Reader failed, unrecognized object code 0
    

Note

I also regenerated the jointData.cpp and jointData.h to be compliant with the new thrift

@update-docs
Copy link
Copy Markdown

update-docs bot commented Mar 6, 2025

Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update the release notes by adding a file in doc/release/<target_branch>, based on your changes.

@GiulioRomualdi
Copy link
Copy Markdown
Member Author

Note

Since this PR will not be merged into YARP soon (the next YARP release is expected in the coming months), I have already prepared two branches that can be used in YARP to collect the temperature using this feature:

Please note that this modification is a breaking change, as it alters the structure of stateExt. If you want to use this feature, ensure that all machines in the network involved in the experiment are switched to the same branch, recompiled, and configured accordingly. After the experiment, switch back to the original configuration.

@GiulioRomualdi
Copy link
Copy Markdown
Member Author

cc @valegagge @MSECode

@randaz81 randaz81 merged commit 72d784c into robotology:master Jun 4, 2025
19 of 73 checks passed
@valegagge
Copy link
Copy Markdown
Member

Do we need to update the robometry documentation after this merge?
cc @Nicogene @MSECode

@MSECode
Copy link
Copy Markdown
Contributor

MSECode commented Jun 5, 2025

Do we need to update the robometry documentation after this merge? cc @Nicogene @MSECode

It was already updated. We probably just need to remove the warning about the problem of working on a specific yarp branch. So yes.

@GiulioRomualdi GiulioRomualdi deleted the temperature_state_ext branch June 20, 2025 10:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants