$search
#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 "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.
Defines | |
#define | PRINT_IF_CHANGED(val) |
#define | PRINT_IF_CHANGED(val) |
#define | TEMP_WARN 60 |
Functions | |
void | CloseAllDevices (void) |
void | CloseAllInterfaces (void) |
int | CreateAllInterfaces (const std::string &address_str) |
void | getMessages () |
int | main (int argc, char **argv) |
void | sendMessages () |
Variables | |
static Device * | devicePtr |
static PowerBoard * | myBoard |
static Interface * | ReceiveInterface |
static Interface * | SendInterface |
static const ros::Duration | TIMEOUT = ros::Duration(1,0) |
#define PRINT_IF_CHANGED | ( | val | ) |
if (pmsg.status.val##_status != newpmsg.status.val##_status) \ { \ ROS_INFO("Power board: status of "#val" changed to %i.", newpmsg.status.val##_status); \ }
#define PRINT_IF_CHANGED | ( | val | ) |
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);\ } \ }
#define TEMP_WARN 60 |
Definition at line 63 of file power_node2.cpp.
void CloseAllDevices | ( | void | ) |
Definition at line 927 of file power_node2.cpp.
void CloseAllInterfaces | ( | void | ) |
Definition at line 920 of file power_node2.cpp.
int CreateAllInterfaces | ( | const std::string & | address_str | ) |
Definition at line 934 of file power_node2.cpp.
void getMessages | ( | ) |
Definition at line 909 of file power_node2.cpp.
int main | ( | int | argc, | |
char ** | argv | |||
) |
Definition at line 958 of file power_node2.cpp.
void sendMessages | ( | ) |
Definition at line 914 of file power_node2.cpp.
Definition at line 70 of file power_node2.cpp.
PowerBoard* myBoard [static] |
Definition at line 73 of file power_node2.cpp.
Interface* ReceiveInterface [static] |
Definition at line 72 of file power_node2.cpp.
Interface* SendInterface [static] |
Definition at line 71 of file power_node2.cpp.
const ros::Duration TIMEOUT = ros::Duration(1,0) [static] |
Definition at line 75 of file power_node2.cpp.