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

typedef pair<string, Config> MotorPair

Definition at line 84 of file motorconf.cpp.

Function Documentation

string boardName ( EthercatDevice d)

Definition at line 209 of file motorconf.cpp.

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

Definition at line 429 of file motorconf.cpp.

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

Definition at line 450 of file motorconf.cpp.

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

Definition at line 471 of file motorconf.cpp.

WG0X* getWGDevice ( int  device)

Definition at line 222 of file motorconf.cpp.

void init ( char *  interface)

Definition at line 87 of file motorconf.cpp.

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

Definition at line 638 of file motorconf.cpp.

bool parseConfig ( TiXmlElement *  config)

Definition at line 491 of file motorconf.cpp.

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

Definition at line 248 of file motorconf.cpp.

bool updateAllHeatingConfig ( )

Definition at line 367 of file motorconf.cpp.

bool updateHeatingConfig ( int  device)

Definition at line 300 of file motorconf.cpp.

void Usage ( string  msg = "")

Definition at line 392 of file motorconf.cpp.

Variable Documentation

map<string, Actuator> actuators

Definition at line 73 of file motorconf.cpp.

string actuators_

Definition at line 386 of file motorconf.cpp.

string board_

Definition at line 387 of file motorconf.cpp.

int device_

Definition at line 384 of file motorconf.cpp.

vector<EthercatDevice *> devices

Definition at line 65 of file motorconf.cpp.

bool enforce_heating_model_

Definition at line 389 of file motorconf.cpp.

struct { ... } g_options
bool help_

Definition at line 383 of file motorconf.cpp.

char* interface_

Definition at line 380 of file motorconf.cpp.

string motor_

Definition at line 385 of file motorconf.cpp.

map<string, Config> motors

Definition at line 85 of file motorconf.cpp.

char* name_

Definition at line 381 of file motorconf.cpp.

bool program_

Definition at line 382 of file motorconf.cpp.

char* program_name_

Definition at line 379 of file motorconf.cpp.

bool update_motor_heating_config_

Definition at line 388 of file motorconf.cpp.



ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Thu Mar 4 2021 03:10:21