#include <canopen.h>
Public Member Functions | |
Device () | |
Device (uint16_t CANid) | |
Device (uint16_t CANid, std::string name, std::string group, std::string bus) | |
Device (uint16_t CANid, std::string name, std::string group) | |
Device (uint16_t CANid, std::string name, std::string group, std::string bus, double conversion_factor, double offsets) | |
double | getActualPos () |
double | getActualVel () |
uint8_t | getCANid () |
double | getConversionFactor () |
int8_t | getCurrentModeofOperation () |
double | getDesiredPos () |
double | getDesiredVel () |
std::string | getDeviceFile () |
bool | getDriveReferenced () |
double | getDriverTemperature () |
std::string | getErrorRegister () |
bool | getFault () |
std::string | getGroup () |
bool | getHomingError () |
bool | getInitialized () |
bool | getInternalLimits () |
bool | getIPMode () |
bool | getManSpec1 () |
bool | getmanSpec2 () |
std::string | getManufactureErrorRegister () |
std::vector< char > | getManufacturerDevName () |
std::vector< char > | getManufacturerHWVersion () |
std::vector< char > | getManufacturerSWVersion () |
bool | getModeSpecific () |
std::string | getMotorState () |
std::string | getName () |
bool | getNegativeLimit () |
bool | getNMTInit () |
std::string | getNMTState () |
bool | getOpEnabled () |
bool | getOpSpec0 () |
bool | getOpSpec1 () |
bool | getPositiveLimit () |
std::vector< uint16_t > | getProdCode () |
bool | getQuickStop () |
bool | getReadySwitchOn () |
bool | getRemote () |
uint16_t | getRevNumber () |
bool | getSwitchOn () |
bool | getSwitchOnDisabled () |
bool | getTargetReached () |
std::chrono::milliseconds | getTimeStamp_msec () |
std::chrono::microseconds | getTimeStamp_usec () |
std::vector< uint16_t > | getVendorID () |
bool | getVoltageEnabled () |
bool | getWarning () |
void | setActualPos (double pos) |
void | setActualVel (double vel) |
void | setConversionFactor (double conversion_factor) |
void | setCurrentModeofOperation (int8_t mode_display) |
void | setDesiredPos (double pos) |
void | setDesiredVel (double vel) |
void | setDriverTemperature (double temperature) |
void | setErrorRegister (std::string error_register) |
void | setFault (bool fault) |
void | setHoming (bool homing_error) |
void | setInitialized (bool initialized) |
void | setInternalLimits (bool internal_limits) |
void | setIPMode (bool ip_mode) |
void | setManSpec1 (bool manspec1) |
void | setManSpec2 (bool manspec2) |
void | setManufacturerDevName (std::vector< char > dev_name) |
void | setManufacturerErrorRegister (std::string manufacturer_error_register) |
void | setManufacturerHWVersion (std::vector< char > mh_version) |
void | setManufacturerSWVersion (std::vector< char > ms_version) |
void | setModeSpec (bool modespec) |
void | setMotorState (std::string nextState) |
void | setNegativeLimit (bool neg_limit) |
void | setNMTInit (bool nmt_limit) |
void | setNMTState (std::string nextState) |
void | setOpEnable (bool op_enable) |
void | setOpSpec0 (bool opspec0) |
void | setOpSpec1 (bool opspec1) |
void | setPositiveLimit (bool pos_limit) |
void | setProdCode (std::vector< uint16_t > prod_code) |
void | setQuickStop (bool quick_stop) |
void | setReadySwitchON (bool r_switch_on) |
void | setRemote (bool remote) |
void | setRevNum (uint16_t rev_num) |
void | setSwitchON (bool switch_on) |
void | setSwitchOnDisable (bool switch_disabled) |
void | setTargetReached (bool target_reached) |
void | setTimeStamp_msec (std::chrono::milliseconds timeStamp) |
void | setTimeStamp_usec (std::chrono::microseconds timeStamp) |
void | setVendorID (std::vector< uint16_t > v_id) |
void | setVoltageEnabled (bool voltage_enabled) |
void | setWarning (bool warning) |
void | updateDesiredPos () |
Private Attributes | |
double | actualPos_ |
double | actualVel_ |
uint8_t | CANid_ |
double | conversion_factor_ |
double | desiredPos_ |
double | desiredVel_ |
std::string | deviceFile_ |
bool | driveReferenced_ |
std::string | error_register_ |
bool | fault_ |
std::string | group_ |
bool | hardware_limit_negative_ |
bool | hardware_limit_positive_ |
bool | homingError_ |
bool | initialized_ |
bool | internal_limit_ |
bool | ip_mode_active_ |
bool | man_specific1_ |
bool | man_specific2_ |
std::vector< char > | manufacturer_device_name_ |
std::string | manufacturer_error_register_ |
std::vector< char > | manufacturer_hw_version_ |
std::vector< char > | manufacturer_sw_version_ |
bool | mode_specific_ |
int8_t | modes_of_operation_display_ |
std::string | motorState_ |
std::string | name_ |
bool | nmt_init_ |
std::string | NMTState_ |
double | offset_ |
bool | op_enable_ |
bool | op_specific1_ |
bool | op_specific_ |
std::vector< uint16_t > | product_code_ |
bool | quick_stop_ |
bool | ready_switch_on_ |
bool | remote_ |
uint16_t | revision_number_ |
bool | switch_on_disabled_ |
bool | switched_on_ |
bool | target_reached_ |
double | temperature_ |
std::chrono::milliseconds | timeStamp_msec_ |
std::chrono::microseconds | timeStamp_usec_ |
std::vector< uint16_t > | vendor_id_ |
bool | volt_enable_ |
bool | warning_ |
canopen::Device::Device | ( | ) | [inline] |
canopen::Device::Device | ( | uint16_t | CANid | ) | [inline] |
canopen::Device::Device | ( | uint16_t | CANid, |
std::string | name, | ||
std::string | group, | ||
std::string | bus | ||
) | [inline] |
canopen::Device::Device | ( | uint16_t | CANid, |
std::string | name, | ||
std::string | group | ||
) | [inline] |
canopen::Device::Device | ( | uint16_t | CANid, |
std::string | name, | ||
std::string | group, | ||
std::string | bus, | ||
double | conversion_factor, | ||
double | offsets | ||
) | [inline] |
double canopen::Device::getActualPos | ( | ) | [inline] |
double canopen::Device::getActualVel | ( | ) | [inline] |
uint8_t canopen::Device::getCANid | ( | ) | [inline] |
double canopen::Device::getConversionFactor | ( | ) | [inline] |
int8_t canopen::Device::getCurrentModeofOperation | ( | ) | [inline] |
double canopen::Device::getDesiredPos | ( | ) | [inline] |
double canopen::Device::getDesiredVel | ( | ) | [inline] |
std::string canopen::Device::getDeviceFile | ( | ) | [inline] |
bool canopen::Device::getDriveReferenced | ( | ) | [inline] |
double canopen::Device::getDriverTemperature | ( | ) | [inline] |
std::string canopen::Device::getErrorRegister | ( | ) | [inline] |
bool canopen::Device::getFault | ( | ) | [inline] |
std::string canopen::Device::getGroup | ( | ) | [inline] |
bool canopen::Device::getHomingError | ( | ) | [inline] |
bool canopen::Device::getInitialized | ( | ) | [inline] |
bool canopen::Device::getInternalLimits | ( | ) | [inline] |
bool canopen::Device::getIPMode | ( | ) | [inline] |
bool canopen::Device::getManSpec1 | ( | ) | [inline] |
bool canopen::Device::getmanSpec2 | ( | ) | [inline] |
std::string canopen::Device::getManufactureErrorRegister | ( | ) | [inline] |
std::vector<char> canopen::Device::getManufacturerDevName | ( | ) | [inline] |
std::vector<char> canopen::Device::getManufacturerHWVersion | ( | ) | [inline] |
std::vector<char> canopen::Device::getManufacturerSWVersion | ( | ) | [inline] |
bool canopen::Device::getModeSpecific | ( | ) | [inline] |
std::string canopen::Device::getMotorState | ( | ) | [inline] |
std::string canopen::Device::getName | ( | ) | [inline] |
bool canopen::Device::getNegativeLimit | ( | ) | [inline] |
bool canopen::Device::getNMTInit | ( | ) | [inline] |
std::string canopen::Device::getNMTState | ( | ) | [inline] |
bool canopen::Device::getOpEnabled | ( | ) | [inline] |
bool canopen::Device::getOpSpec0 | ( | ) | [inline] |
bool canopen::Device::getOpSpec1 | ( | ) | [inline] |
bool canopen::Device::getPositiveLimit | ( | ) | [inline] |
std::vector<uint16_t> canopen::Device::getProdCode | ( | ) | [inline] |
bool canopen::Device::getQuickStop | ( | ) | [inline] |
bool canopen::Device::getReadySwitchOn | ( | ) | [inline] |
bool canopen::Device::getRemote | ( | ) | [inline] |
uint16_t canopen::Device::getRevNumber | ( | ) | [inline] |
bool canopen::Device::getSwitchOn | ( | ) | [inline] |
bool canopen::Device::getSwitchOnDisabled | ( | ) | [inline] |
bool canopen::Device::getTargetReached | ( | ) | [inline] |
std::chrono::milliseconds canopen::Device::getTimeStamp_msec | ( | ) | [inline] |
std::chrono::microseconds canopen::Device::getTimeStamp_usec | ( | ) | [inline] |
std::vector<uint16_t> canopen::Device::getVendorID | ( | ) | [inline] |
bool canopen::Device::getVoltageEnabled | ( | ) | [inline] |
bool canopen::Device::getWarning | ( | ) | [inline] |
void canopen::Device::setActualPos | ( | double | pos | ) | [inline] |
void canopen::Device::setActualVel | ( | double | vel | ) | [inline] |
void canopen::Device::setConversionFactor | ( | double | conversion_factor | ) | [inline] |
void canopen::Device::setCurrentModeofOperation | ( | int8_t | mode_display | ) | [inline] |
void canopen::Device::setDesiredPos | ( | double | pos | ) | [inline] |
void canopen::Device::setDesiredVel | ( | double | vel | ) | [inline] |
void canopen::Device::setDriverTemperature | ( | double | temperature | ) | [inline] |
void canopen::Device::setErrorRegister | ( | std::string | error_register | ) | [inline] |
void canopen::Device::setFault | ( | bool | fault | ) | [inline] |
void canopen::Device::setHoming | ( | bool | homing_error | ) | [inline] |
void canopen::Device::setInitialized | ( | bool | initialized | ) | [inline] |
void canopen::Device::setInternalLimits | ( | bool | internal_limits | ) | [inline] |
void canopen::Device::setIPMode | ( | bool | ip_mode | ) | [inline] |
void canopen::Device::setManSpec1 | ( | bool | manspec1 | ) | [inline] |
void canopen::Device::setManSpec2 | ( | bool | manspec2 | ) | [inline] |
void canopen::Device::setManufacturerDevName | ( | std::vector< char > | dev_name | ) | [inline] |
void canopen::Device::setManufacturerErrorRegister | ( | std::string | manufacturer_error_register | ) | [inline] |
void canopen::Device::setManufacturerHWVersion | ( | std::vector< char > | mh_version | ) | [inline] |
void canopen::Device::setManufacturerSWVersion | ( | std::vector< char > | ms_version | ) | [inline] |
void canopen::Device::setModeSpec | ( | bool | modespec | ) | [inline] |
void canopen::Device::setMotorState | ( | std::string | nextState | ) | [inline] |
void canopen::Device::setNegativeLimit | ( | bool | neg_limit | ) | [inline] |
void canopen::Device::setNMTInit | ( | bool | nmt_limit | ) | [inline] |
void canopen::Device::setNMTState | ( | std::string | nextState | ) | [inline] |
void canopen::Device::setOpEnable | ( | bool | op_enable | ) | [inline] |
void canopen::Device::setOpSpec0 | ( | bool | opspec0 | ) | [inline] |
void canopen::Device::setOpSpec1 | ( | bool | opspec1 | ) | [inline] |
void canopen::Device::setPositiveLimit | ( | bool | pos_limit | ) | [inline] |
void canopen::Device::setProdCode | ( | std::vector< uint16_t > | prod_code | ) | [inline] |
void canopen::Device::setQuickStop | ( | bool | quick_stop | ) | [inline] |
void canopen::Device::setReadySwitchON | ( | bool | r_switch_on | ) | [inline] |
void canopen::Device::setRemote | ( | bool | remote | ) | [inline] |
void canopen::Device::setRevNum | ( | uint16_t | rev_num | ) | [inline] |
void canopen::Device::setSwitchON | ( | bool | switch_on | ) | [inline] |
void canopen::Device::setSwitchOnDisable | ( | bool | switch_disabled | ) | [inline] |
void canopen::Device::setTargetReached | ( | bool | target_reached | ) | [inline] |
void canopen::Device::setTimeStamp_msec | ( | std::chrono::milliseconds | timeStamp | ) | [inline] |
void canopen::Device::setTimeStamp_usec | ( | std::chrono::microseconds | timeStamp | ) | [inline] |
void canopen::Device::setVendorID | ( | std::vector< uint16_t > | v_id | ) | [inline] |
void canopen::Device::setVoltageEnabled | ( | bool | voltage_enabled | ) | [inline] |
void canopen::Device::setWarning | ( | bool | warning | ) | [inline] |
void canopen::Device::updateDesiredPos | ( | ) | [inline] |
double canopen::Device::actualPos_ [private] |
double canopen::Device::actualVel_ [private] |
uint8_t canopen::Device::CANid_ [private] |
double canopen::Device::conversion_factor_ [private] |
double canopen::Device::desiredPos_ [private] |
double canopen::Device::desiredVel_ [private] |
std::string canopen::Device::deviceFile_ [private] |
bool canopen::Device::driveReferenced_ [private] |
std::string canopen::Device::error_register_ [private] |
bool canopen::Device::fault_ [private] |
std::string canopen::Device::group_ [private] |
bool canopen::Device::hardware_limit_negative_ [private] |
bool canopen::Device::hardware_limit_positive_ [private] |
bool canopen::Device::homingError_ [private] |
bool canopen::Device::initialized_ [private] |
bool canopen::Device::internal_limit_ [private] |
bool canopen::Device::ip_mode_active_ [private] |
bool canopen::Device::man_specific1_ [private] |
bool canopen::Device::man_specific2_ [private] |
std::vector<char> canopen::Device::manufacturer_device_name_ [private] |
std::string canopen::Device::manufacturer_error_register_ [private] |
std::vector<char> canopen::Device::manufacturer_hw_version_ [private] |
std::vector<char> canopen::Device::manufacturer_sw_version_ [private] |
bool canopen::Device::mode_specific_ [private] |
int8_t canopen::Device::modes_of_operation_display_ [private] |
std::string canopen::Device::motorState_ [private] |
std::string canopen::Device::name_ [private] |
bool canopen::Device::nmt_init_ [private] |
std::string canopen::Device::NMTState_ [private] |
double canopen::Device::offset_ [private] |
bool canopen::Device::op_enable_ [private] |
bool canopen::Device::op_specific1_ [private] |
bool canopen::Device::op_specific_ [private] |
std::vector<uint16_t> canopen::Device::product_code_ [private] |
bool canopen::Device::quick_stop_ [private] |
bool canopen::Device::ready_switch_on_ [private] |
bool canopen::Device::remote_ [private] |
uint16_t canopen::Device::revision_number_ [private] |
bool canopen::Device::switch_on_disabled_ [private] |
bool canopen::Device::switched_on_ [private] |
bool canopen::Device::target_reached_ [private] |
double canopen::Device::temperature_ [private] |
std::chrono::milliseconds canopen::Device::timeStamp_msec_ [private] |
std::chrono::microseconds canopen::Device::timeStamp_usec_ [private] |
std::vector<uint16_t> canopen::Device::vendor_id_ [private] |
bool canopen::Device::volt_enable_ [private] |
bool canopen::Device::warning_ [private] |