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

◆ ActuatorPair

typedef pair<string, Actuator> ActuatorPair

Definition at line 72 of file motorconf.cpp.

◆ MotorPair

typedef pair<string, Config> MotorPair

Definition at line 84 of file motorconf.cpp.

Function Documentation

◆ boardName()

string boardName ( EthercatDevice d)

Definition at line 209 of file motorconf.cpp.

◆ getDoubleAttribute()

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

Definition at line 429 of file motorconf.cpp.

◆ getIntegerAttribute()

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

Definition at line 450 of file motorconf.cpp.

◆ getStringAttribute()

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

Definition at line 471 of file motorconf.cpp.

◆ getWGDevice()

WG0X* getWGDevice ( int  device)

Definition at line 222 of file motorconf.cpp.

◆ init()

void init ( char *  interface)

Definition at line 87 of file motorconf.cpp.

◆ main()

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

Definition at line 638 of file motorconf.cpp.

◆ parseConfig()

bool parseConfig ( TiXmlElement *  config)

Definition at line 491 of file motorconf.cpp.

◆ programDevice()

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

Definition at line 248 of file motorconf.cpp.

◆ updateAllHeatingConfig()

bool updateAllHeatingConfig ( )

Definition at line 367 of file motorconf.cpp.

◆ updateHeatingConfig()

bool updateHeatingConfig ( int  device)

Definition at line 300 of file motorconf.cpp.

◆ Usage()

void Usage ( string  msg = "")

Definition at line 392 of file motorconf.cpp.

Variable Documentation

◆ actuators

map<string, Actuator> actuators

Definition at line 73 of file motorconf.cpp.

◆ actuators_

string actuators_

Definition at line 386 of file motorconf.cpp.

◆ board_

string board_

Definition at line 387 of file motorconf.cpp.

◆ device_

int device_

Definition at line 384 of file motorconf.cpp.

◆ devices

vector<EthercatDevice *> devices

Definition at line 65 of file motorconf.cpp.

◆ enforce_heating_model_

bool enforce_heating_model_

Definition at line 389 of file motorconf.cpp.

◆ g_options

struct { ... } g_options

◆ help_

bool help_

Definition at line 383 of file motorconf.cpp.

◆ interface_

char* interface_

Definition at line 380 of file motorconf.cpp.

◆ motor_

string motor_

Definition at line 385 of file motorconf.cpp.

◆ motors

map<string, Config> motors

Definition at line 85 of file motorconf.cpp.

◆ name_

char* name_

Definition at line 381 of file motorconf.cpp.

◆ program_

bool program_

Definition at line 382 of file motorconf.cpp.

◆ program_name_

char* program_name_

Definition at line 379 of file motorconf.cpp.

◆ update_motor_heating_config_

bool update_motor_heating_config_

Definition at line 388 of file motorconf.cpp.



ethercat_hardware
Author(s): Rob Wheeler , Derek King
autogenerated on Tue Mar 28 2023 02:10:20