#include <ridgeback_lighting.h>
Classes | |
struct | patterns |
Public Member Functions | |
RidgebackLighting (ros::NodeHandle *nh) | |
Private Member Functions | |
void | cmdVelCallback (const geometry_msgs::Twist::ConstPtr &msg) |
void | mcuStatusCallback (const ridgeback_msgs::Status::ConstPtr &status_msg) |
void | pumaStatusCallback (const puma_motor_msgs::MultiStatus::ConstPtr &status_msg) |
void | setLights (ridgeback_msgs::Lights *lights, uint32_t pattern[8]) |
void | setRGB (ridgeback_msgs::RGB *rgb, uint32_t colour) |
void | timerCb (const ros::TimerEvent &) |
void | updatePattern () |
void | updateState () |
void | userCmdCallback (const ridgeback_msgs::Lights::ConstPtr &lights_msg) |
void | userTimeoutCb (const ros::TimerEvent &) |
Private Attributes | |
bool | allow_user_ |
geometry_msgs::Twist | cmd_vel_msg_ |
ros::Subscriber | cmd_vel_sub_ |
uint32_t | current_pattern_ [8] |
uint8_t | current_pattern_count_ |
ros::Publisher | lights_pub_ |
ridgeback_msgs::Status | mcu_status_msg_ |
ros::Subscriber | mcu_status_sub_ |
ros::NodeHandle * | nh_ |
uint8_t | old_state_ |
struct ridgeback_base::RidgebackLighting::patterns | patterns_ |
ros::Timer | pub_timer_ |
ros::Subscriber | puma_status_sub_ |
puma_motor_msgs::MultiStatus | pumas_status_msg_ |
uint8_t | state_ |
ros::Subscriber | user_cmds_sub_ |
bool | user_publishing_ |
ros::Timer | user_timeout_ |
Definition at line 46 of file ridgeback_lighting.h.
ridgeback_base::RidgebackLighting::RidgebackLighting | ( | ros::NodeHandle * | nh | ) | [explicit] |
Definition at line 77 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::cmdVelCallback | ( | const geometry_msgs::Twist::ConstPtr & | msg | ) | [private] |
Definition at line 172 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::mcuStatusCallback | ( | const ridgeback_msgs::Status::ConstPtr & | status_msg | ) | [private] |
Definition at line 162 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::pumaStatusCallback | ( | const puma_motor_msgs::MultiStatus::ConstPtr & | status_msg | ) | [private] |
Definition at line 167 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::setLights | ( | ridgeback_msgs::Lights * | lights, |
uint32_t | pattern[8] | ||
) | [private] |
Definition at line 145 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::setRGB | ( | ridgeback_msgs::RGB * | rgb, |
uint32_t | colour | ||
) | [private] |
Definition at line 138 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::timerCb | ( | const ros::TimerEvent & | ) | [private] |
Definition at line 177 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::updatePattern | ( | ) | [private] |
Definition at line 246 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::updateState | ( | ) | [private] |
Definition at line 204 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::userCmdCallback | ( | const ridgeback_msgs::Lights::ConstPtr & | lights_msg | ) | [private] |
Definition at line 153 of file ridgeback_lighting.cpp.
void ridgeback_base::RidgebackLighting::userTimeoutCb | ( | const ros::TimerEvent & | ) | [private] |
Definition at line 199 of file ridgeback_lighting.cpp.
bool ridgeback_base::RidgebackLighting::allow_user_ [private] |
Definition at line 68 of file ridgeback_lighting.h.
geometry_msgs::Twist ridgeback_base::RidgebackLighting::cmd_vel_msg_ [private] |
Definition at line 63 of file ridgeback_lighting.h.
Definition at line 59 of file ridgeback_lighting.h.
uint32_t ridgeback_base::RidgebackLighting::current_pattern_[8] [private] |
Definition at line 73 of file ridgeback_lighting.h.
uint8_t ridgeback_base::RidgebackLighting::current_pattern_count_ [private] |
Definition at line 72 of file ridgeback_lighting.h.
Definition at line 54 of file ridgeback_lighting.h.
ridgeback_msgs::Status ridgeback_base::RidgebackLighting::mcu_status_msg_ [private] |
Definition at line 62 of file ridgeback_lighting.h.
Definition at line 57 of file ridgeback_lighting.h.
Definition at line 52 of file ridgeback_lighting.h.
uint8_t ridgeback_base::RidgebackLighting::old_state_ [private] |
Definition at line 71 of file ridgeback_lighting.h.
struct ridgeback_base::RidgebackLighting::patterns
ridgeback_base::RidgebackLighting::patterns_ [private] |
Definition at line 65 of file ridgeback_lighting.h.
Definition at line 58 of file ridgeback_lighting.h.
puma_motor_msgs::MultiStatus ridgeback_base::RidgebackLighting::pumas_status_msg_ [private] |
Definition at line 61 of file ridgeback_lighting.h.
uint8_t ridgeback_base::RidgebackLighting::state_ [private] |
Definition at line 70 of file ridgeback_lighting.h.
Definition at line 56 of file ridgeback_lighting.h.
bool ridgeback_base::RidgebackLighting::user_publishing_ [private] |
Definition at line 69 of file ridgeback_lighting.h.
Definition at line 66 of file ridgeback_lighting.h.