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

Cadshape geometry contained in Solid will not be detected by radar. #6454

Open
ltcstar opened this issue Dec 5, 2023 · 1 comment
Open

Comments

@ltcstar
Copy link

ltcstar commented Dec 5, 2023

Describe the Bug
CadShape geometry contained in Solid node will not be detected by radar.
Only the Solid origin position can be detected by radar.

Steps to Reproduce

  1. add a solid node, set radarCrossSection to 1, add CadShape to children and select some model to import.
  2. add a robot with radar and write suitable controller codes to enable radar and prints radar information to console.
  3. add a supervisor robot with controller codes to make the solid node move radially towards and away from radar.
  4. radar detects nothing as long as the origin point of Solid is out of range, while the geometry of CadShape is in range.

Expected behavior
I've tried to use Solid - Shape - Sphere. The result shows that the Sphere geometry can be detected by radar. The radar can detect something after the origin of Solid is out of range when some part of Sphere is still in range.

It's expected for radar to detect CadShape geometry.

Screenshots
CadShape cannot be detected by radar.
CadShapeNotDetected

Sphere can be detected by radar.
SphereDetected

System

  • Operating System: Windows 11 Pro, 22H2, 22621.2715
  • Graphics Card: NVIDIA GeForce RTX 4060 8 GB
@ShuffleWire
Copy link
Contributor

I would expect that Webots would have to check for all individual vertexes / faces in your shape to determine accurately if it's visible or not, and that would be expensive...

As for collision detection, I stumble on using a bounding object made up of multiple basic built-in shape, and that work way better, in term of computational stability and cost...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

2 participants