Repository navigation
Conversation
Assisted-by: OpenAI Codex Signed-off-by: Kwon Yeseol <172019512+yeseorizi@users.noreply.github.com>
This branch has not been deployed
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.
Summary
Make ocean-current update requests all-or-nothing with respect to validation, and timestamp current messages with simulation time. Reproduced on
mainat0d19c3f.Previously, a request with a valid speed but an invalid angle could change the speed and then return
success=false. NaN could also pass the model's range comparisons.UpdateInfo.simTimefor both current message timestamps instead of a node clock that can be wall time.This preserves the existing stochastic/physical formulas. “All-or-nothing” here describes validation semantics, not a new cross-thread synchronization guarantee.
Reproduction and validation
pre-commitchecks passed.colcon build --packages-select posim_gz_world_plugins posim_ros_gz_plugins \ --cmake-args -DBUILD_TESTING=ON ctest --test-dir build/posim_gz_world_plugins --output-on-failure \ -R '^test_current_model$' --repeat until-fail:10Scope / limitations
Tested in Ubuntu 26.04 ARM64 Docker on an Apple Silicon Mac, ROS 2 Lyrical / Gazebo Jetty 10.5.0. Service integration used the local diagnostic
ros_gz_bridgeshutdown overlay; its shutdown behavior is a separate dependency issue. No new current model, WGPU change, real-ocean accuracy or native-host validation is claimed.The existing locally patched
asv_wave_simdependency also remained installed during scene checks. Neither that renderer teardown patch nor the bridge overlay is included in this PR; successful scene cleanup is not attributed to this change alone.Checklist
pre-commit.colcon testis clean. The earlier full audit also reports pre-existing ament cpplint/uncrustify/copyright failures; no tests were disabled here.Assisted-by: OpenAI Codex (implementation, tests and PR preparation).