00001 /* 00002 * Copyright (c) 2013, Shadow Robot Company, All rights reserved. 00003 * 00004 * This library is free software; you can redistribute it and/or 00005 * modify it under the terms of the GNU Lesser General Public 00006 * License as published by the Free Software Foundation; either 00007 * version 3.0 of the License, or (at your option) any later version. 00008 * 00009 * This library is distributed in the hope that it will be useful, 00010 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00011 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00012 * Lesser General Public License for more details. 00013 * 00014 * You should have received a copy of the GNU Lesser General Public 00015 * License along with this library. 00016 */ 00017 00028 #include "sr_ronex_drivers/cod_decod/cod_decod.hpp" 00029 #include <vector> 00030 00031 namespace sr_cod_decod 00032 { 00033 CodDecod::CodDecod() 00034 { 00035 } 00036 00037 void CodDecod::construct(hardware_interface::HardwareInterface *hw, EtherCAT_SlaveHandler *sh, int n_digital_outputs, 00038 int n_analog_outputs, int n_digital_inputs, int n_analog_inputs, int n_PWM_outputs) 00039 { 00040 sh_ = sh; 00041 hw_ = static_cast<ros_ethercat_model::RobotState*>(hw); 00042 } 00043 00044 00045 void CodDecod::update(unsigned char *status_buffer) 00046 { 00047 } 00048 00049 void CodDecod::build_command(unsigned char *command_buffer) 00050 { 00051 } 00052 00053 void CodDecod::add_diagnostics(std::vector<diagnostic_msgs::DiagnosticStatus> &vec, 00054 diagnostic_updater::DiagnosticStatusWrapper &d) 00055 { 00056 } 00057 } // namespace sr_cod_decod