Autonomous-Driving-Simulation-ROS icon indicating copy to clipboard operation
Autonomous-Driving-Simulation-ROS copied to clipboard

quest

Open Mr-Lj-c7 opened this issue 1 year ago • 7 comments

There seems to be some issues with the lidar_simulation?

Mr-Lj-c7 avatar Mar 28 '24 03:03 Mr-Lj-c7

Laser is for local path planning, you can use your own binary map and scale it to the appropriate scale.

Matthew-Lyu avatar Mar 28 '24 05:03 Matthew-Lyu

After changing the radar detection range, it seems that the radar is unable to correctly detect obstacles in the map。 Uploading Screenshot from 2024-03-28 16-18-30.png…

Mr-Lj-c7 avatar Mar 28 '24 08:03 Mr-Lj-c7

This radar needs to be adjusted according to the size and zoom ratio of the map. My parameters are for my demo map. You need to first modify the map zoom ratio in the yaml file according to your map, and then fine-tune the radar parameters.

Matthew-Lyu avatar Mar 28 '24 08:03 Matthew-Lyu

Based on your map and parameters, it is possible to plan normally, but the radar point cloud cannot be displayed, and the point cloud data is empty when viewed

Mr-Lj-c7 avatar Mar 28 '24 09:03 Mr-Lj-c7

Uploading Screenshot from 2024-03-28 17-26-35.png…

Mr-Lj-c7 avatar Mar 28 '24 09:03 Mr-Lj-c7

I understand what you mean. First, you need to realize that the radar is there for local path planning, and the condition for displaying the radar point cloud is the detection of obstacles. Currently, the resolution set in my map YAML file is 0.01, which means the resolution of the map is 0.01 meters per pixel. Since the parameters required by the background task of my project are fixed, my current simulation situation is equivalent to a small car (a cube with a collision volume) planning and controlling on a relatively open map. Because the path that the car can travel on the map is wide., global path planning plays the main role, and local path planning hardly plays a role. You can modify the resolution of the map to achieve the purpose of reducing the map size, so that when the path the small car can travel is relatively narrow, local path planning will come into play to avoid hitting obstacles. In this case, the radar point cloud you mentioned will be displayed.

image: 跑圈地图.jpg resolution: 0.010000 origin: [0.0000, 0.0000, 0.00000] negate: 0 occupied_thresh: 0.65 free_thresh: 0.196

Matthew-Lyu avatar Mar 28 '24 09:03 Matthew-Lyu

Okay, thank you for your guidance. The obstacle section under vehicle_simulation in the project seems to have not been used, but rather subscribed to obstacle information in the map through the Obstacle service?

Mr-Lj-c7 avatar Apr 10 '24 07:04 Mr-Lj-c7