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 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 71 of file motorconf.cpp.

typedef pair<string, Config> MotorPair

Definition at line 83 of file motorconf.cpp.


Function Documentation

string boardName ( EthercatDevice d)

Definition at line 208 of file motorconf.cpp.

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

Definition at line 428 of file motorconf.cpp.

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

Definition at line 449 of file motorconf.cpp.

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

Definition at line 470 of file motorconf.cpp.

WG0X* getWGDevice ( int  device)

Definition at line 221 of file motorconf.cpp.

void init ( char *  interface)

Definition at line 86 of file motorconf.cpp.

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

Definition at line 637 of file motorconf.cpp.

bool parseConfig ( TiXmlElement *  config)

Definition at line 490 of file motorconf.cpp.

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

Definition at line 247 of file motorconf.cpp.

Definition at line 366 of file motorconf.cpp.

bool updateHeatingConfig ( int  device)

Definition at line 299 of file motorconf.cpp.

void Usage ( string  msg = "")

Definition at line 391 of file motorconf.cpp.


Variable Documentation

map<string, Actuator> actuators

Definition at line 72 of file motorconf.cpp.

string actuators_

Definition at line 385 of file motorconf.cpp.

string board_

Definition at line 386 of file motorconf.cpp.

int device_

Definition at line 383 of file motorconf.cpp.

Definition at line 64 of file motorconf.cpp.

Definition at line 388 of file motorconf.cpp.

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

Definition at line 382 of file motorconf.cpp.

char* interface_

Definition at line 379 of file motorconf.cpp.

string motor_

Definition at line 384 of file motorconf.cpp.

map<string, Config> motors

Definition at line 84 of file motorconf.cpp.

char* name_

Definition at line 380 of file motorconf.cpp.

bool program_

Definition at line 381 of file motorconf.cpp.

Definition at line 378 of file motorconf.cpp.

Definition at line 387 of file motorconf.cpp.



ethercat_hardware
Author(s): Rob Wheeler (email: wheeler@willowgarage.com), Maintained by Derek King (email: dking@willowgarage.com)
autogenerated on Thu Jan 2 2014 11:39:31