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

Improve JumpThreshold documentation and forbid zero durations #861

Merged
merged 2 commits into from Dec 10, 2021

Conversation

sloretz
Copy link
Contributor

@sloretz sloretz commented Dec 9, 2021

Split from #858

This documents JumpThreshold, and forbids passing zero Durations.

JumpThreshold min_forward and min_backward are disabled in rclpy when None is passed. In rcl the thresholds are disabled when set to 0. I chose to make JumpThreshold forbid zero Durations so that there's only one way to disable them. Otherwise, it's easy to pass a zero duration and think it's requesting the smallest possible time jump.

Signed-off-by: Shane Loretz <sloretz@openrobotics.org>
@sloretz sloretz self-assigned this Dec 9, 2021
@sloretz
Copy link
Contributor Author

sloretz commented Dec 10, 2021

CI (build: --packages-up-to rclpy test: --packages-select rclpy)

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
  • Windows Build Status

Signed-off-by: Shane Loretz <sloretz@openrobotics.org>
@sloretz
Copy link
Contributor Author

sloretz commented Dec 10, 2021

Rerun of CI with linter fix

  • Linux Build Status
  • Linux-aarch64 Build Status
  • macOS Build Status
    • CI infrastructure issue, rerun: Build Status
  • Windows Build Status

@sloretz
Copy link
Contributor Author

sloretz commented Dec 10, 2021

Since the commit a04bee4 is only adding a newline in a docstring to satisfy the linter, I'll assume @j-rivero 's approval still applies.

@sloretz sloretz merged commit 0582aaf into master Dec 10, 2021
@delete-merged-branch delete-merged-branch bot deleted the jump_threshold_documentation branch December 10, 2021 01:25
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.

None yet

2 participants