-
Notifications
You must be signed in to change notification settings - Fork 222
Integrate pal_statistics for introspecting the ros2_control_demos #654
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
base: master
Are you sure you want to change the base?
Conversation
I'll set it to draft until a valid version is in the ros2_control repo. |
Sure. Thanks |
3646e22
to
f82fc37
Compare
@@ -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]); |
There was a problem hiding this comment.
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?
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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
@saikishor how do we proceed here? |
I would say let's merge it at least it shows how to introspect internal variables |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Then we need some documentation (in the code, in the rst) ;)
Needs: ros-controls/ros2_control#1897