Open EtienneSchmitz opened 3 years ago
Same problem with seed 33.
[INFO] [1624324028.296741, 0.000000]: Spawn status: SpawnModel: Successfully spawned entity
Traceback (most recent call last):
File "/workspace/src/tmc_wrs_gazebo/tmc_wrs_gazebo_worlds/scripts/spawn_objects", line 300, in <module>
X = generate_scatter(place[0][0], place[1][0], place[0][1], place[1][1], n, 0.2)
File "/workspace/src/tmc_wrs_gazebo/tmc_wrs_gazebo_worlds/scripts/spawn_objects", line 222, in generate_scatter
dist = np.min(pdist(X))
File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 2618, in amin
initial=initial)
File "/usr/local/lib/python2.7/dist-packages/numpy/core/fromnumeric.py", line 86, in _wrapreduction
return ufunc.reduce(obj, axis, dtype, out, **passkwargs)
ValueError: zero-size array to reduction operation minimum which has no identity
[spawn_objects-35] process has died [pid 43523, exit code 1, cmd /workspace/src/tmc_wrs_gazebo/tmc_wrs_gazebo_worlds/scripts/spawn_objects --seed 33 --percategory 2 --obstacles 2 --perrow 4 __name:=spawn_objects __log:=/home/developer/.ros/log/22c977a4-d2f6-11eb-b333-0242ac130003/spawn_objects-35.log].
log file: /home/developer/.ros/log/22c977a4-d2f6-11eb-b333-0242ac130003/spawn_objects-35*.log
Should be fixed after the RoboCup event.
During our tests, we set the seed 65. An error occurs and only the objects in the first room spawn.
See below the error :