Class MovingImageAnimation

Inheritance Relationships

Base Type

Class Documentation

class MovingImageAnimation : public husarion_ugv_lights::ImageAnimation

Public Functions

inline MovingImageAnimation()
inline ~MovingImageAnimation()
virtual void Initialize(const YAML::Node &animation_description, const std::size_t num_led, const float controller_frequency)

Initialize and verify if animation was correctly defined.

Parameters:
  • animation_description – YAML description of animation

  • num_led – number of LEDs

  • controller_frequency – frequency at which animation will be updated

Throws:

std::out_of_range – or std::runtime_error if animation parameters defined in description are missing or are incorrect

Protected Functions

virtual std::vector<std::uint8_t> UpdateFrame()

Abstract method that has to be implemented inside child class it should return RGBA animation frame with size equal to num_led_ * kRGBAColorLen.

virtual void SetParam(const std::string &param)