FS-Driverless / FS-Driverless/Formula-Student-Driverless-Simulator
Service /fsds/reset gets stuck after calling it a random amount of times.
- Vorherrschende Sprache
- C++
- Sterne
- 286
- Forks
- 126
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
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.

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?
Beitragsleitfaden
Für dieses Repository ist kein Beitragsleitfaden indexiert
Rechercherichtung
Beginne damit, die bereitgestellte Python-rospy-Schleife gegen /fsds/reset auszuführen, und notiere, an welcher Stelle sie nach wiederholten Aufrufen blockiert. Vergleiche dies mit dem gemeldeten Verhalten des Pause-Dienstes und untersuche den Einstiegspunkt des /fsds/reset-Dienstes in der Nähe der in der verknüpften Screenshot gezeigten Blockierungsstelle. Als erledigt gilt die Aufgabe, wenn wiederholte Reset-Aufrufe ohne Hängenbleiben abgeschlossen werden.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- python, unreal-engine
- Bereich
- api, robotics
- Issue-Typ
- Bug
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 30/100