Skip to content

Enhance G1JointStatePublisher to support configurable publish rate and improve timing control#166

Open
openminddev wants to merge 3 commits intomainfrom
reduce-g1-joint-rate
Open

Enhance G1JointStatePublisher to support configurable publish rate and improve timing control#166
openminddev wants to merge 3 commits intomainfrom
reduce-g1-joint-rate

Conversation

@openminddev
Copy link
Copy Markdown
Contributor

This pull request enhances the G1JointStatePublisher node 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:

  • Added a publish_rate parameter (default 50 Hz), and calculated min_publish_interval to control how frequently joint states are published. This helps avoid publishing updates too frequently. (g1_jointstate.py)
  • Updated the logger to display the current publishing rate during initialization for better transparency and debugging. (g1_jointstate.py)
  • Implemented logic in low_state_callback to skip publishing if the minimum interval has not elapsed, enforcing the configured rate. (g1_jointstate.py)

openminddev and others added 3 commits February 13, 2026 15:27
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.
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.

1 participant