Classes | Typedefs | Functions | Variables
motorconf.cpp File Reference
#include <map>
#include <stdio.h>
#include <getopt.h>
#include <sys/mman.h>
#include <tinyxml.h>
#include <ethercat/ethercat_xenomai_drv.h>
#include <dll/ethercat_dll.h>
#include <al/ethercat_AL.h>
#include <al/ethercat_master.h>
#include <al/ethercat_slave_handler.h>
#include "ethercat_hardware/motor_heating_model.h"
#include <ethercat_hardware/wg0x.h>
#include <ethercat_hardware/wg05.h>
#include <ethercat_hardware/wg06.h>
#include <ethercat_hardware/wg021.h>
#include <ethercat_hardware/wg014.h>
#include <boost/crc.hpp>
#include <boost/foreach.hpp>
#include <net/if.h>
#include <sys/ioctl.h>
#include <netinet/in.h>
#include <log4cxx/logger.h>
Include dependency graph for motorconf.cpp:

Go to the source code of this file.

Classes

struct  Actuator
struct  Config

Typedefs

typedef pair< string, ActuatorActuatorPair
typedef pair< string, ConfigMotorPair

Functions

string boardName (EthercatDevice *d)
bool getDoubleAttribute (TiXmlElement *params, const char *motor_name, const char *param_name, double &value)
bool getIntegerAttribute (TiXmlElement *params, const char *motor_name, const char *param_name, int &value)
bool getStringAttribute (TiXmlElement *params, const char *motor_name, const char *param_name, char *strbuf, unsigned buflen)
WG0XgetWGDevice (int device)
void init (char *interface)
int main (int argc, char *argv[])
bool parseConfig (TiXmlElement *config)
bool programDevice (int device, const Config &config, char *name, string expected_board, bool enforce_heating_model)
bool updateAllHeatingConfig ()
bool updateHeatingConfig (int device)
void Usage (string msg="")

Variables

map< string, Actuatoractuators
vector< EthercatDevice * > devices
struct {
   string   actuators_
   string   board_
   int   device_
   bool   enforce_heating_model_
   bool   help_
   char *   interface_
   string   motor_
   char *   name_
   bool   program_
   char *   program_name_
   bool   update_motor_heating_config_
g_options
map< string, Configmotors

Typedef Documentation

typedef pair<string, Actuator> ActuatorPair

Definition at line 73 of file motorconf.cpp.

typedef pair<string, Config> MotorPair

Definition at line 85 of file motorconf.cpp.


Function Documentation

string boardName ( EthercatDevice d)

Definition at line 210 of file motorconf.cpp.

bool getDoubleAttribute ( TiXmlElement *  params,
const char *  motor_name,
const char *  param_name,
double &  value 
)

Definition at line 430 of file motorconf.cpp.

bool getIntegerAttribute ( TiXmlElement *  params,
const char *  motor_name,
const char *  param_name,
int &  value 
)

Definition at line 451 of file motorconf.cpp.

bool getStringAttribute ( TiXmlElement *  params,
const char *  motor_name,
const char *  param_name,
char *  strbuf,
unsigned  buflen 
)

Definition at line 472 of file motorconf.cpp.

WG0X* getWGDevice ( int  device)

Definition at line 223 of file motorconf.cpp.

void init ( char *  interface)

Definition at line 88 of file motorconf.cpp.

int main ( int  argc,
char *  argv[] 
)

Definition at line 639 of file motorconf.cpp.

bool parseConfig ( TiXmlElement *  config)

Definition at line 492 of file motorconf.cpp.

bool programDevice ( int  device,
const Config config,
char *  name,
string  expected_board,
bool  enforce_heating_model 
)

Definition at line 249 of file motorconf.cpp.

Definition at line 368 of file motorconf.cpp.

bool updateHeatingConfig ( int  device)

Definition at line 301 of file motorconf.cpp.

void Usage ( string  msg = "")

Definition at line 393 of file motorconf.cpp.


Variable Documentation

map<string, Actuator> actuators

Definition at line 74 of file motorconf.cpp.

string actuators_

Definition at line 387 of file motorconf.cpp.

string board_

Definition at line 388 of file motorconf.cpp.

int device_

Definition at line 385 of file motorconf.cpp.

Definition at line 66 of file motorconf.cpp.

Definition at line 390 of file motorconf.cpp.

struct { ... } g_options [static]
bool help_

Definition at line 384 of file motorconf.cpp.

char* interface_

Definition at line 381 of file motorconf.cpp.

string motor_

Definition at line 386 of file motorconf.cpp.

map<string, Config> motors

Definition at line 86 of file motorconf.cpp.

char* name_

Definition at line 382 of file motorconf.cpp.

bool program_

Definition at line 383 of file motorconf.cpp.

Definition at line 380 of file motorconf.cpp.

Definition at line 389 of file motorconf.cpp.



ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Fri Aug 28 2015 12:09:44