Skip to content

Conversation

@christophfroehlich
Copy link
Contributor

Handle types not being double are just not published now.

I tried to make cast_to_double() reusable, I did not find a better place to add it.

@christophfroehlich christophfroehlich added the backport-kilted Triggers PR backport to ROS 2 kilted. label Oct 7, 2025
* @throw std::runtime_error if the HandleDataType cannot be casted to double.
* @note Once we add support for more data types, this function should be updated
*/
double cast_to_double(const HANDLE_DATATYPE & value) const
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this good! We will also need this for reuse of controllers.

Also do backwards casting from double to internal values.

Copy link
Member

@destogl destogl left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I find this good!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport-kilted Triggers PR backport to ROS 2 kilted.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

boolean data type signals are not shown in the data_introspection topic

3 participants