Open alanxuefei opened 9 months ago
Are you aware that in ROS 2 the ray sensor
was refactored?
https://github.com/ros-simulation/gazebo_ros_pkgs/wiki/ROS-2-Migration:-Ray-sensors
Maybe that's why the gazebo_ros_gpu_laser.cpp
doesn't exist anymore
Based on the information from rays-dont-detect-actor, Actors are only visible through the gpu_sensor (gazebo_ros_gpu_laser.cpp). Conversely, they aren't detectable via the non_gpu_sensor (gazebo_ros_laser.cpp).
It's noteworthy that the gazebo_ros_gpu_laser.cpp file is absent in the ROS2 branch, specifically in the release for ROS2 Humble. Please refer to the "Browse Code" link in gazebo_ros_pkgs
There's an issue in ROS2's Gazebo where the non GPU Ray Sensor fails to detect Actor (cylinder) as shown below:
The SDF code is as below