#include <stdio.h>
#include <stdint.h>
#include <string.h>
#include <unistd.h>
#include <stdlib.h>
#include <sys/select.h>
#include <sys/types.h>
#include <assert.h>
#include <errno.h>
#include <signal.h>
#include <vector>
#include <sstream>
#include <iostream>
#include <boost/thread/thread.hpp>
#include <boost/program_options.hpp>
#include <sys/socket.h>
#include <netinet/in.h>
#include <arpa/inet.h>
#include <net/if.h>
#include <sys/ioctl.h>
#include <log4cxx/logger.h>
#include "power_comm.h"
#include "power_node2.h"
#include "diagnostic_msgs/DiagnosticArray.h"
#include "diagnostic_updater/DiagnosticStatusWrapper.h"
#include "pr2_msgs/PowerBoardState.h"
#include "rosconsole/macros_generated.h"
#include "ros/ros.h"
Go to the source code of this file.
◆ PRINT_IF_CHANGED [1/2]
#define PRINT_IF_CHANGED |
( |
|
val | ) |
|
Value:for (int counter = 0; counter < 3; counter++) \
{ \
if (tmsg.cb[counter].val##_count != newtmsg.cb[counter].val##_count) \
{ \
ROS_INFO("Power board: CB%i "#val" event count changed to %i.", counter, newtmsg.cb[counter].val##_count);\
} \
}
◆ PRINT_IF_CHANGED [2/2]
#define PRINT_IF_CHANGED |
( |
|
val | ) |
|
Value:if (pmsg.status.val##_status != newpmsg.status.val##_status) \
{ \
ROS_INFO("Power board: status of "#val" changed to %i.", newpmsg.status.val##_status); \
}
◆ TEMP_WARN
◆ CloseAllDevices()
void CloseAllDevices |
( |
void |
| ) |
|
◆ CloseAllInterfaces()
void CloseAllInterfaces |
( |
void |
| ) |
|
◆ CreateAllInterfaces()
int CreateAllInterfaces |
( |
const std::string & |
address_str | ) |
|
◆ getMessages()
◆ main()
int main |
( |
int |
argc, |
|
|
char ** |
argv |
|
) |
| |
◆ sendMessages()
◆ devicePtr
◆ myBoard
◆ ReceiveInterface
◆ SendInterface
◆ TIMEOUT