I found a solution for gazebo classic here:
For gz Harmonic, how to get the same function since there is no RayShape anymore.
I found the GetRayIntersection in gz::physics but had no idea how to use it in upper program
I found a solution for gazebo classic here:
For gz Harmonic, how to get the same function since there is no RayShape anymore.
I found the GetRayIntersection in gz::physics but had no idea how to use it in upper program
I guess you should wait for Physics: Ray intersections by romulogcerqueira · Pull Request #2514 · gazebosim/gz-sim · GitHub will be merged.