ApolloAuto / apollo

An open autonomous driving platform
Apache License 2.0
25.19k stars 9.71k forks source link

post telemetry to external API #14964

Open barrykidney opened 1 year ago

barrykidney commented 1 year ago

I am doing a dissertation that involves Apollo Auto, I need it to periodically post telemetry to an external API. is this a feature that is available in Apollo Auto? if not I could do with some advice about how to go about it. I've tried adding a module in r7.0.0 but I have no background in c++ so it hasn't gone well :( any help/guidance would be greatly appreciated. Thank you

Additional, the telemetry I need to post is: timestamp, ego-vehicle (id, heading, position, velocity), perception-objects-list [ (id, type, heading, position, velocity), (....), (....) ]

daohu527 commented 1 year ago

Simply put, you only need to subscribe to the message, for example, you can use the python interface to subscribe to these messages.

https://github.com/ApolloAuto/apollo/blob/master/cyber/python/cyber_py3/examples/listener.py

you can find message here, also you can call interface https://github.com/ApolloAuto/apollo/tree/master/modules/common_msgs