Class LEDAnimation

Class Documentation

class LEDAnimation

Class representing animation that can be displayed on robot segments.

Public Functions

inline LEDAnimation(const LEDAnimationDescription &led_animation_description, const std::unordered_map<std::string, std::shared_ptr<LEDSegment>> &segments, const rclcpp::Time &init_time)

Initializes LED animation.

Parameters:
  • led_animation_description – YAML description of the LED animation

  • segments – This parameter is used to create map of segments used by this LED animation

  • init_time – Time of creation of the LED animation

inline ~LEDAnimation()
inline std::string GetName() const
inline std::uint8_t GetPriority() const
inline std::vector<AnimationDescription> GetAnimations() const
inline rclcpp::Time GetInitTime() const
inline float GetTimeout() const
inline bool IsRepeating() const
inline std::string GetParam() const
inline void SetRepeating(const bool value)
inline void SetParam(const std::string &param)

Public Static Attributes

static constexpr std::uint8_t kDefaultPriority = 3
static constexpr float kDefaultTimeout = 120.0f
static constexpr std::array<std::uint8_t, 4> kValidPriorities = {0, 1, 2, 3}