rosin-project / metacontrol_sim

2 stars 4 forks source link

Could not start XXXX Oberserver #41

Open chcorbato opened 4 years ago

chcorbato commented 4 years ago

This happens very frequently, especially with the EnergyObserver.

CONTEXT

 ./run_single_sim.sh -i 2 -g 2 -n standard -r true -p 1.3

OUTPUT

[INFO] [1590215602.961954, 0.000000]: Controller frequency: 1.0
energy
EnergyQualityObserver
[INFO] [1590215603.004127, 0.000000]: Waiting for service...
[INFO] [1590215603.011966, 0.000000]: Waiting for service...
Could not start EnergyQualityObserver
The load observer service call is completed!
safety
SafetyQualityObserver
[INFO] [1590215603.149441, 0.000000]: Waiting for service...
Could not start SafetyQualityObserver
The load observer service call is completed!
marioney commented 4 years ago

I'm not able to replicate this, it works for me.

Also, this error message

Could not start EnergyQualityObserver

Comes from the rosgraph_monitor/scripts/monitor#L60 I'll take a look at it, and maybe @ipa-hsd can help us find out why the exception is raised

chcorbato commented 4 years ago

I'm not able to replicate this, it works for me.

Maybe it is a race condition / timing issue, and in my slow computer it happens sometime. I will move it to wont fix now for the moment.

hsd-dev commented 4 years ago

I pulled the latest observers branch and unable to replicate this. I am able to load and unload the observer.

chcorbato commented 4 years ago

I think there is some race condition that happens for my slow machine. I leave it open but with wontfix

Thanks @ipa-hsd !! 🎉