19 #ifndef PACKML_STACKLIGHT_UTILS_H 20 #define PACKML_STACKLIGHT_UTILS_H 48 ros::Time& last_time,
double on_secs,
double off_secs);
62 std::map<std::string, uint8_t>
getPubMap(packml_msgs::State current_state);
68 #endif // PACKML_STACKLIGHT_UTILS_H std::map< std::string, uint8_t > getPubMap(Action action)
double flash_sec_light_off_
bool setSuspendStarving(bool starving=true)
bool getSuspendStarving()
void maybeResetState(packml_msgs::State ¤t_state, ros::Time &last_time)
Action getActionFromState(packml_msgs::State current_state)
std::vector< Action > action_vec_
bool getShouldPublish(packml_msgs::State current_state)
double publish_frequency_
double flash_sec_buzzer_off_
double flash_sec_light_on_
Flash::Value getBuzzerFlash(packml_msgs::State current_state)
Flash::Value getLightFlash(packml_msgs::State current_state)
void getFlash(packml_msgs::State current_state, int8_t &last_state, packml_stacklight::Flash::Value &last_flash, ros::Time &last_time, double on_secs, double off_secs)
double flash_sec_buzzer_on_
std::vector< Action > initDefaultStatusActions()