Go to the documentation of this file.
45 sh->set_fmmu_config(
new EtherCAT_FMMU_Config(0) );
46 sh->set_pd_config(
new EtherCAT_PD_Config(0) );
51 delete sh_->get_fmmu_config();
52 delete sh_->get_pd_config();
57 ROS_DEBUG(
"Device #%02d: EK1122 (%#08x)",
sh_->get_ring_position(),
sh_->get_product_code());
63 str <<
"EtherCAT Device #" << setw(2) << setfill(
'0') <<
sh_->get_ring_position() <<
" (EK1122)";
67 snprintf(serial,
sizeof(serial),
"%d-%05d-%05d",
sh_->get_product_code()/ 100000 ,
sh_->get_product_code() % 100000,
sh_->get_serial());
68 d.hardware_id = serial;
71 d.addf(
"Product code",
"EK1122 (%u)",
sh_->get_product_code());
int initialize(pr2_hardware_interface::HardwareInterface *, bool)
PLUGINLIB_EXPORT_CLASS(EK1122, EthercatDevice)
void diagnostics(diagnostic_updater::DiagnosticStatusWrapper &d, unsigned char *)
For EtherCAT device that only publish one EtherCAT Status message. If sub-class implements multiDiagn...
void construct(EtherCAT_SlaveHandler *sh, int &start_address)
< Construct EtherCAT device
virtual void construct(EtherCAT_SlaveHandler *sh, int &start_address)
< Construct EtherCAT device
EtherCAT_SlaveHandler * sh_
void ethercatDiagnostics(diagnostic_updater::DiagnosticStatusWrapper &d, unsigned numPorts)
Adds diagnostic information for EtherCAT ports.
ethercat_hardware
Author(s): Rob Wheeler
, Derek King
autogenerated on Thu Sep 26 2024 02:44:04