hanruihua / rl_rvo_nav

The source code of the [RA-L] paper "Reinforcement Learned Distributed Multi-Robot Navigation with Reciprocal Velocity Obstacle Shaped Rewards"
MIT License
180 stars 32 forks source link

How do I add some static obstacles to the dynamic obstacle world? #13

Closed FADEAWAY114 closed 1 year ago

FADEAWAY114 commented 1 year ago

Hello, I want to add some static obstacles to the dynamic obstacle world, so I modified the “dynamic_obs_test.yaml” file and modified it as follows. But when running, there are no static obstacles, please how should I set it up to run correctly. 4

hanruihua commented 1 year ago

The modification is wrong, only obs_cirs can be recongnized. you can just add the static polygon obstacles by adding the follows:

obs_polygons: number: 1 vertexes_list: [ [ [4, 2], [4, 4], [3, 4], [3, 2] ], ]

FADEAWAY114 commented 1 year ago

修改是错误的,只有obs_cirs可以重新识别。您可以通过添加以下内容来添加静态多边形障碍物:

obs_polygons: 数字: 1 vertexes_list: [ [ [4, 2], [4, 4], [3, 4], [3, 2] ], ]

Thank you