CMU-TBD / SocNavBench

A Grounded Simulation Testing Framework for Evaluating Social Navigation: https://arxiv.org/abs/2103.00047
MIT License
34 stars 6 forks source link

full-render error #25

Open SnallQiu opened 1 year ago

SnallQiu commented 1 year ago

Hello, when I'm running the test_episodes.py setting with the full-render mode, and use the single SFM algorithm for the robot navigation, there is an error when rendering the trajectory picture, as the following shows.

Successfully wrote episode log to episode_log.txt
Successfully wrote episode metrics to /home/XXX/SocNavBench/SocNavBench/tests/socnav/test_social_force/t_eth_dense_against/episode_score_t_eth_dense_against.pkl

Rendering movie with fps=2.5 on 1 processors
Traceback (most recent call last):
  File "tests/test_episodes.py", line 111, in <module>
    test_episodes()
  File "tests/test_episodes.py", line 103, in test_episodes
    simulator.render(r, filename=episode.name + "_obs")
  File "/home/qiuqc/SocNavBench/SocNavBench/simulators/simulator_helper.py", line 394, in render
    worker_render_sim_states(0)
  File "/home/qiuqc/SocNavBench/SocNavBench/simulators/simulator_helper.py", line 367, in worker_render_sim_states
    filename="{}_obs{:03d}.png".format(filename, sim_idx),
  File "/home/qiuqc/SocNavBench/SocNavBench/utils/image_utils.py", line 127, in render_socnav
    renderer.update_bulk_humans(list(sim_state.pedestrians.values()))
  File "/home/qiuqc/SocNavBench/SocNavBench/socnav/socnav_renderer.py", line 187, in update_bulk_humans
    self.building.update_bulk_humans(humans)
  File "/home/qiuqc/SocNavBench/SocNavBench/mp_env/mp_env.py", line 315, in update_bulk_humans
    self.load_bulk_humans_into_scene(humans)
  File "/home/qiuqc/SocNavBench/SocNavBench/mp_env/mp_env.py", line 250, in load_bulk_humans_into_scene
    human_xy_center_2=pos_3[:2],
  File "/home/qiuqc/SocNavBench/SocNavBench/mp_env/map_utils.py", line 185, in add_human_to_traversible
    num_obstcale_points += _project_to_map(map, p[ind, :], wt[ind])
  File "/home/qiuqc/SocNavBench/SocNavBench/mp_env/map_utils.py", line 133, in _project_to_map
    np.add.at(num_points, (vertex_[:, 1], vertex_[:, 0]), wt)
IndexError: index 378 is out of bounds for axis 0 with size 378