#include <ros/ros.h>
#include <sensor_msgs/BatteryState.h>
#include <sensor_msgs/Imu.h>
#include <sensor_msgs/MagneticField.h>
#include <sensor_msgs/LaserScan.h>
#include <diagnostic_msgs/DiagnosticArray.h>
#include <turtlebot3_msgs/SensorState.h>
#include <turtlebot3_msgs/VersionInfo.h>
#include <string>
Go to the source code of this file.
|
void | firmwareVersionMsgCallback (const turtlebot3_msgs::VersionInfo::ConstPtr &msg) |
|
void | imuMsgCallback (const sensor_msgs::Imu::ConstPtr &msg) |
|
void | LDSMsgCallback (const sensor_msgs::LaserScan::ConstPtr &msg) |
|
int | main (int argc, char **argv) |
|
void | msgPub () |
|
void | sensorStateMsgCallback (const turtlebot3_msgs::SensorState::ConstPtr &msg) |
|
void | setBatteryDiagnosis (uint8_t level, std::string message) |
|
void | setButtonDiagnosis (uint8_t level, std::string message) |
|
void | setDiagnosisMsg (diagnostic_msgs::DiagnosticStatus *diag, uint8_t level, std::string name, std::string message, std::string hardware_id) |
|
void | setIMUDiagnosis (uint8_t level, std::string message) |
|
void | setLDSDiagnosis (uint8_t level, std::string message) |
|
void | setMotorDiagnosis (uint8_t level, std::string message) |
|
void | split (std::string data, std::string separator, std::string *temp) |
|
#define FIRMWARE_VERSION_MAJOR_NUMBER 1 |
#define FIRMWARE_VERSION_MINOR_NUMBER 2 |
#define HARDWARE_VERSION "2020.03.16" |
#define SOFTWARE_VERSION "1.2.5" |
void firmwareVersionMsgCallback |
( |
const turtlebot3_msgs::VersionInfo::ConstPtr & |
msg | ) |
|
void imuMsgCallback |
( |
const sensor_msgs::Imu::ConstPtr & |
msg | ) |
|
void LDSMsgCallback |
( |
const sensor_msgs::LaserScan::ConstPtr & |
msg | ) |
|
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
void sensorStateMsgCallback |
( |
const turtlebot3_msgs::SensorState::ConstPtr & |
msg | ) |
|
void setBatteryDiagnosis |
( |
uint8_t |
level, |
|
|
std::string |
message |
|
) |
| |
void setButtonDiagnosis |
( |
uint8_t |
level, |
|
|
std::string |
message |
|
) |
| |
void setDiagnosisMsg |
( |
diagnostic_msgs::DiagnosticStatus * |
diag, |
|
|
uint8_t |
level, |
|
|
std::string |
name, |
|
|
std::string |
message, |
|
|
std::string |
hardware_id |
|
) |
| |
void setIMUDiagnosis |
( |
uint8_t |
level, |
|
|
std::string |
message |
|
) |
| |
void setLDSDiagnosis |
( |
uint8_t |
level, |
|
|
std::string |
message |
|
) |
| |
void setMotorDiagnosis |
( |
uint8_t |
level, |
|
|
std::string |
message |
|
) |
| |
void split |
( |
std::string |
data, |
|
|
std::string |
separator, |
|
|
std::string * |
temp |
|
) |
| |
diagnostic_msgs::DiagnosticStatus battery_state |
diagnostic_msgs::DiagnosticStatus button_state |
diagnostic_msgs::DiagnosticStatus imu_state |
diagnostic_msgs::DiagnosticStatus LDS_state |
diagnostic_msgs::DiagnosticStatus motor_state |