airo-ugent / airo-ugent/airo-planner

OMPL prints can appear after later Python prints

Ouverte
#3 0 commentaires 0 réactions 0 personnes assignées Voir sur GitHub
Langage dominant
Jupyter Notebook
Étoiles
16
Forks
1
Métriques de merge des PR
Aucune PR mergée en 30 j

Description

This is not a huge issue, but it's just a little annoying (and confusing) that OMPL prints seem to be flushed later than Python prints. See example below where the path's shape is printed before the Info: prints from during the path's solve.
![image](https://github.com/airo-ugent/airo-planner/assets/23340946/76c6bcf2-065d-4d4b-b398-bf1e6a95f9af)
I've unsuccessfully tried:
```python
# My attempt to get the OMPL Info: messages to show up in the correct order between the loguru logs
# This however does not seems to work, so I don't know where those prints are buffered
sys.stdout.flush()
```

Guide de contribution

Aucun guide de contribution indexé pour ce dépôt

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.