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

Fix Heron warnings #6717

Merged
merged 8 commits into from
Dec 5, 2024
Merged

Fix Heron warnings #6717

merged 8 commits into from
Dec 5, 2024

Conversation

MNikoliCC
Copy link
Contributor

@MNikoliCC MNikoliCC commented Dec 3, 2024

Description
The EXTERNPROTO import paths for certain PROTO files were incorrectly referencing raw GitHub URLs, such as https://raw.githubusercontent.com/cyberbotics/webots/R2025a/.... This has been fixed by replacing them with the correct Webots-specific protocol webots://.

Related Issues
Fixes #6716

Tasks
Add the list of tasks of this PR.

  • Fix bugs

@MNikoliCC MNikoliCC requested a review from a team as a code owner December 3, 2024 14:31
@MNikoliCC MNikoliCC marked this pull request as draft December 3, 2024 14:32
@MNikoliCC MNikoliCC self-assigned this Dec 3, 2024
@MNikoliCC
Copy link
Contributor Author

This is the new warning that produces the Heron USV robot to fall into the sea, because there is no bounding object:

WARNING: Heron "heron":  Skipped node: Cannot insert Transform node in 'boundingObject' field of Robot node in bounding object.
WARNING: Heron "heron": Mass is invalid because 'boundingObject' is not defined. Using default mass properties: mass = 1, inertia matrix = identity

A workaround would be to make a simple bounding object from multiple Pose nodes instead of loading the whole mesh and scaling it down. This would reduce the complexity of the simulation as well.

@MNikoliCC MNikoliCC changed the title Fix Fix Heron warnings Dec 3, 2024
@MNikoliCC
Copy link
Contributor Author

After adding the boundingObject, the simulation is working as expected.

@MNikoliCC MNikoliCC requested a review from lukicdarkoo December 4, 2024 10:38
@MNikoliCC MNikoliCC marked this pull request as ready for review December 4, 2024 11:04
Copy link
Member

@lukicdarkoo lukicdarkoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good, just remove the changelog

docs/reference/changelog-r2025.md Outdated Show resolved Hide resolved
@MNikoliCC MNikoliCC requested a review from lukicdarkoo December 4, 2024 11:47
lukicdarkoo
lukicdarkoo previously approved these changes Dec 4, 2024
Copy link
Member

@lukicdarkoo lukicdarkoo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you

@CoolSpy3 CoolSpy3 linked an issue Dec 5, 2024 that may be closed by this pull request
@MNikoliCC
Copy link
Contributor Author

Whit this change (decimating the mesh), the last warning is fixed:
WARNING: Heron "heron" > DEF HERON Shape > Mesh "": Too many triangles (23409) in mesh: unable to cast shadows, please reduce the number of triangles below 21845 or set Shape.castShadows to FALSE to disable this warning.

@MNikoliCC MNikoliCC requested a review from lukicdarkoo December 5, 2024 11:14
@MNikoliCC MNikoliCC merged commit 96d865a into develop Dec 5, 2024
20 checks passed
@MNikoliCC MNikoliCC deleted the fix-simulation-bug branch December 5, 2024 13:22
CoolSpy3 pushed a commit to DeepBlueRobotics/webots that referenced this pull request Dec 22, 2024
CoolSpy3 added a commit that referenced this pull request Dec 27, 2024
* Fix Heron warnings (#6717)

Fix Heron warnings

* print more info

* use absolute path for heron protos

* Revert "print more info"

This reverts commit f9d5e51.

* directly use water bounding boxes

---------

Co-authored-by: MNikoliCC <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

Bug in Heron USV simulations
2 participants