Defines | Functions | Variables
power_node_simulator.cpp File Reference
#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 <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_node.h"
#include "diagnostic_msgs/DiagnosticMessage.h"
#include "diagnostic_updater/DiagnosticStatusWrapper.h"
#include "rosconsole/macros_generated.h"
#include "ros/console.h"
Include dependency graph for power_node_simulator.cpp:

Go to the source code of this file.

Defines

#define PRINT_IF_CHANGED(val)
#define PRINT_IF_CHANGED(val)

Functions

void CloseAllDevices (void)
int CreateAllInterfaces (void)
void generateDeviceMessages ()
int main (int argc, char **argv)
void processSentMessage (CommandMessage *cmd)
void sendMessages ()

Variables

static std::vector< Device * > Devices
static PowerBoardmyBoard

Define Documentation

#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);\
  }                                                                                                           \
}
#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); \
}

Function Documentation

void CloseAllDevices ( void  )

Definition at line 504 of file power_node_simulator.cpp.

int CreateAllInterfaces ( void  )

Definition at line 514 of file power_node_simulator.cpp.

Definition at line 519 of file power_node_simulator.cpp.

int main ( int  argc,
char **  argv 
)

Definition at line 578 of file power_node_simulator.cpp.

void processSentMessage ( CommandMessage *  cmd)

Definition at line 573 of file power_node_simulator.cpp.

void sendMessages ( )

Definition at line 499 of file power_node_simulator.cpp.


Variable Documentation

std::vector<Device*> Devices [static]

Definition at line 65 of file power_node_simulator.cpp.

PowerBoard* myBoard [static]

Definition at line 66 of file power_node_simulator.cpp.



pr2_power_board
Author(s): Curt Meyers, Blaise Gassend
autogenerated on Wed Aug 26 2015 15:40:44