WIP: replay overhaul (no more special ekf2 replay)

This commit is contained in:
Daniel Agar
2024-03-21 13:58:22 -04:00
parent 710286da72
commit 245fc46840
28 changed files with 792 additions and 1029 deletions
+1 -41
View File
@@ -503,7 +503,7 @@ private: // data members
DeviceMaster *_device_master{nullptr};
private: //class methods
Manager();
Manager() = default;
virtual ~Manager();
#ifdef CONFIG_ORB_COMMUNICATOR
@@ -559,46 +559,6 @@ private: //class methods
*/
virtual int16_t process_received_message(const char *messageName, int32_t length, uint8_t *data);
#endif /* CONFIG_ORB_COMMUNICATOR */
#ifdef ORB_USE_PUBLISHER_RULES
struct PublisherRule {
const char **topics; //null-terminated list of topic names
const char *module_name; //only this module is allowed to publish one of the topics
bool ignore_other_topics;
};
/**
* test if str starts with pre
*/
bool startsWith(const char *pre, const char *str);
/**
* find a topic in a rule
*/
bool findTopic(const PublisherRule &rule, const char *topic_name);
/**
* trim whitespace from the beginning of a string
*/
void strTrim(const char **str);
/**
* Read publisher rules from a file. It has the format:
*
* restrict_topics: <topic1>, <topic2>, <topic3>
* module: <module_name>
* [ignore_others:true]
*
* @return 0 on success, <0 otherwise
*/
int readPublisherRulesFromFile(const char *file_name, PublisherRule &rule);
PublisherRule _publisher_rule;
bool _has_publisher_rules = false;
#endif /* ORB_USE_PUBLISHER_RULES */
};
#endif /* _uORBManager_hpp_ */