FS-Driverless / FS-Driverless/Formula-Student-Driverless-Simulator

Service /fsds/reset gets stuck after calling it a random amount of times.

Aperta
#267 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
C++
Stelle
286
Fork
126
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

Since we are trying to make the autonomous system with reinforcement learning, we call the reset service very often. It seems that after a random amount of time calling this service, it gets stuck at the same place. Random because I have seen it get stuck after calling it for 100 times up to 50000 times. After ctrl-c you see that the program stops at the same line every time like shown in the screenshot below.

![image](https://user-images.githubusercontent.com/61761867/112214099-19396a00-8c1f-11eb-8d2c-51dad1036bb9.png)

If you want, you can reproduce this problem by executing this code.

```
import rospy
import time
from fs_msgs.srv import Reset

def callReset():
rospy.wait_for_service('/fsds/reset')
try:
reset = rospy.ServiceProxy('/fsds/reset', Reset)
reset(True)
except rospy.ServiceException as e:
print("Service call failed: %s"%e)

if __name__ == '__main__':
rospy.init_node('FEB_autonomous_system', anonymous=True, disable_signals=True)
count = 0
while True:
count += 1
callReset()
print(count)
#time.sleep(0.1)
```

We also have implemented a pause service and same thing happens there. I am not sure if this problem is with our code or something else. Did anyone already encountered this problem?

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Direzione di ricerca

Inizia eseguendo il ciclo Python rospy fornito su /fsds/reset e annota il punto in cui si blocca dopo chiamate ripetute. Confronta questo comportamento con quello segnalato del servizio di pausa e ispeziona il punto di ingresso del servizio /fsds/reset vicino alla posizione del blocco mostrata nello screenshot collegato. Il lavoro è completato quando le chiamate ripetute a reset terminano senza bloccarsi.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Valutazione

Stack tecnologico
python, unreal-engine
Ambito
api, robotics
Tipo di issue
Bug
Difficoltà
4/5
Tempo stimato
3-5 giorni
Stato di attività
Ferma
Chiarezza
Da chiarire
Idoneità per principianti
30/100

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.