-
Couldn't load subscription status.
- Fork 256
Update Example 17 to also showcase new HardwareStatus Publisher #887
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
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.
Some minor details, mostly fixing RST syntax:
- Should we also add the usage of the new CLI verb here?
- Let's use this example for an integration test, and add
WaitForTopictests in test_robot_launch.py? - please revert the double->int change as we have decided on the other PR.
example_17/doc/userdoc.rst
Outdated
| This example shows how to publish diagnostics and status messages from a hardware component using ROS 2 features available within the ``ros2_control`` framework. | ||
|
|
||
| It is essentially the same as Example 1, but with a modified hardware interface plugin that demonstrates two methods for publishing status information: | ||
| 1. Using the standard ``diagnostic_updater`` on the default node to publish to the ``/diagnostics`` topic. This is the recommended approach for hardware status reporting. |
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.
we have two recommended approachs here ;) what is best practice?
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.
yea I think the wording was not clear enough,
- is supposed to be for doing status reporting with diagnostics
- is for standard hardware status reporting as defined by https://github.com/ros-controls/roadmap/blob/master/design_drafts/hardware_status.md
I have updated in e87c860, hope thats better
| - Uses message type ``diagnostic_msgs/msg/DiagnosticArray``. | ||
| - Custom node: | ||
| - Is named ``<hardware_name>_custom_node`` (e.g., ``/rrbot_custom_node``). | ||
| - Publishes on the topic ``/rrbot_custom_status``. |
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.
missing newlines also above, but I can't suggest in no-change lines
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.
refer dc64b9d
example_17/doc/userdoc.rst
Outdated
| stamp: | ||
| sec: 0 | ||
| nanosec: 0 | ||
| frame_id: '' |
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.
why is this empty?
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.
| This will create a publisher on the topic ``/rrbot/hardware_status``. | ||
|
|
||
| .. _diagnostic_publisher_implementation: |
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.
after The key steps are: there is also a newline missing, sphinx does not like this.
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.
refer dc64b9d
yea my sphinx skills are really subpar lol, need to improve
This reverts commit b8e16cd.
Co-authored-by: Christoph Fröhlich <[email protected]>
Co-authored-by: Christoph Fröhlich <[email protected]>
Co-authored-by: Christoph Fröhlich <[email protected]>
Co-authored-by: Christoph Fröhlich <[email protected]>
Brief
This PR showcases the feature added by ros-controls/ros2_control#2476