apollo icon indicating copy to clipboard operation
apollo copied to clipboard

FATAL error: "planning" module can't fetch the observation data and exit automatically.

Open davidhopper2003 opened this issue 8 years ago • 8 comments

When the "planning" module is loaded in Dreamview, whether using simulated data or actually testing in a Lincoln MKZ car, it often happens that observation data can't be fetched and thus cause the module being exited (the error message is shown as follows. In fact, my chassis state is OK). We have to repeatedly click the "planning" option in Dreamview to make the module work normally. What's the problem on earth? Thank you.

Log file created at: 2018/03/16 13:54:14
Running on machine: in_dev_docker
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
F0316 13:54:14.908344 11469 adapter.h:237] Check failed: !observed_queue_.empty() The view of data queue is empty. No data is received yet or you forgot to call Observe():/apollo/canbus/chassis

The relevant code that caused the problem may be shown as follows:

void Planning::RunOnce() {
  // ...
  // chassis
  const auto& chassis = AdapterManager::GetChassis()->GetLatestObserved();
  ADEBUG << "Get chassis:" << chassis.DebugString();
 // ...
}

davidhopper2003 avatar Mar 16 '18 06:03 davidhopper2003

Sometimes, the error message is shown as follows. In fact, my localization state is also OK.

Log file created at: 2018/03/18 09:31:07
Running on machine: in_dev_docker
Log line format: [IWEF]mmdd hh:mm:ss.uuuuuu threadid file:line] msg
F0318 09:31:07.759959 23038 adapter.h:237] Check failed: !observed_queue_.empty() The view of data queue is empty. No data is received yet or you forgot to call Observe():/apollo/localization/pose

davidhopper2003 avatar Mar 18 '18 01:03 davidhopper2003

I also meet this problem. I can see the localization message with "rostopic echo". But Apollo modules can not capture the message.

wqqn avatar Mar 20 '18 06:03 wqqn

@wqqn Glad to see that you also met the same problem as me.

davidhopper2003 avatar Mar 20 '18 08:03 davidhopper2003

I met the problem because I switched ros transport mode to socket. After I switch the ros transport mode to shared memory, the problem is gone.

wqqn avatar Mar 21 '18 00:03 wqqn

This seems to be an issue that not related to planning module. @Zhenni17

lianglia-apollo avatar Mar 28 '18 17:03 lianglia-apollo

@davidhopper2003 has this issue been resolved at your end?

natashadsouza avatar Aug 27 '18 22:08 natashadsouza

@natashadsouza It seems that there is a problem with my initialization code. Maybe it can be considered that the problem has been solved.

davidhopper2003 avatar Aug 29 '18 06:08 davidhopper2003

Thanks @davidhopper2003 I am currently closing this issue. If you have any additional questions please feel free to reopen the issue.

natashadsouza avatar Aug 29 '18 18:08 natashadsouza