Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate pal_statistics for introspecting the ros2_control_demos #654

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

saikishor
Copy link
Member

@christophfroehlich
Copy link
Contributor

I'll set it to draft until a valid version is in the ros2_control repo.

@saikishor
Copy link
Member Author

I'll set it to draft until a valid version is in the ros2_control repo.

Sure. Thanks
Sorry for the noise🙏🏽🙏🏽

@saikishor saikishor force-pushed the integrate/pal_statistics branch from 3646e22 to f82fc37 Compare January 1, 2025 20:15
@@ -85,6 +85,11 @@ controller_interface::CallbackReturn PassthroughController::on_configure(
reference_interfaces_.resize(
reference_interface_names_.size(), std::numeric_limits<double>::quiet_NaN());

for (size_t i = 0; i < reference_interface_names_.size(); i++)
{
REGISTER_ROS2_CONTROL_INTROSPECTION(reference_interface_names_[i], &reference_interfaces_[i]);
Copy link
Contributor

Choose a reason for hiding this comment

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

aren't reference interfaces exported by default?

Copy link
Member Author

Choose a reason for hiding this comment

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

Yes yes, they are.
I added to just show how to introspect internal variables. I didn't know what else to register in this controller

Copy link
Contributor

Choose a reason for hiding this comment

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

I see. I had a look now and don't find any other more useful variables to introspect in this repository. maybe we should have a look in ros2_controllers and register more variables to pal_statistics, currently most of the controllers have their own publisher with a custom status message type. not sure what is the best way in the controllers for doing so

Copy link
Member Author

Choose a reason for hiding this comment

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

I would say yes, it is better to register some variables in the controllers

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants