Enhance G1JointStatePublisher to support configurable publish rate and improve timing control#166
Open
openminddev wants to merge 3 commits intomainfrom
Open
Enhance G1JointStatePublisher to support configurable publish rate and improve timing control#166openminddev wants to merge 3 commits intomainfrom
openminddev wants to merge 3 commits intomainfrom
Conversation
…d improve timing control
Refactor long inline expressions in g1_jointstate.py into multi-line parenthesized expressions for readability (min_publish_interval and time_since_last_publish). No functional changes; behavior unchanged.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request enhances the
G1JointStatePublishernode by adding configurable publishing rate control. The main improvement is allowing users to set the rate at which joint state messages are published, preventing excessive publishing and making the node more flexible for different use cases.Publishing rate configuration and control:
publish_rateparameter (default 50 Hz), and calculatedmin_publish_intervalto control how frequently joint states are published. This helps avoid publishing updates too frequently. (g1_jointstate.py)g1_jointstate.py)low_state_callbackto skip publishing if the minimum interval has not elapsed, enforcing the configured rate. (g1_jointstate.py)