Class DJISubscription

Inheritance Relationships

Derived Types

Class Documentation

class DJISubscription

Subclassed by DJISubscriptionBattery, DJISubscriptionCompass, DJISubscriptionFlightStatus, DJISubscriptionImu, DJISubscriptionOdometry, DJISubscriptionRTK

Public Types

using SharedPtr = std::shared_ptr<DJISubscription>

Public Functions

inline DJISubscription(const std::string package_name, as2::Node *&node, Vehicle *vehicle, int frequency, bool enable_timestamp = false)
inline bool start()
inline void stop()
inline void update()
inline int getPackageIndex() const
inline float getFrequency() const
inline void setFrequency(const float frequency)
inline bool getEnableTimestamp() const
inline std::string getName() const

Protected Functions

inline virtual void onStart()
virtual void initializeTopics() = 0
virtual void onUpdate() = 0
inline virtual void onStop()

Protected Attributes

Vehicle *vehicle_ = nullptr
std::vector<TopicName> topics_
as2::Node *node_