Public Member Functions | Protected Member Functions | Protected Attributes
ronex::mapping::general_io::CommandToPWM2PinDir Class Reference

#include <command_to_pwm_2_dir_pin.hpp>

Inheritance diagram for ronex::mapping::general_io::CommandToPWM2PinDir:
Inheritance graph
[legend]

List of all members.

Public Member Functions

 CommandToPWM2PinDir (TiXmlElement *mapping_el, ros_ethercat_model::RobotState *robot)
virtual void propagateFromRonex (ros_ethercat_model::JointState *js)
virtual void propagateToRonex (ros_ethercat_model::JointState *js)
virtual ~CommandToPWM2PinDir ()

Protected Member Functions

bool check_pins_in_bound_ ()
bool init_ (TiXmlElement *mapping_el, ros_ethercat_model::RobotState *robot, const char *ronex_name)
virtual bool try_init_cb_ (const ros::TimerEvent &, TiXmlElement *mapping_el, ros_ethercat_model::RobotState *robot, const char *ronex_name)

Protected Attributes

size_t digital_pin_index_2_
 digital pin index for the second motor direction digital pin

Detailed Description

Definition at line 35 of file command_to_pwm_2_dir_pin.hpp.


Constructor & Destructor Documentation

Definition at line 36 of file command_to_pwm_2_dir_pin.cpp.

Definition at line 40 of file command_to_pwm_2_dir_pin.hpp.


Member Function Documentation

Check whether the pwm_module_ and pin_index_ are in the correct ranges.

Returns:
true if the pins are in the correct ranges

Reimplemented from ronex::mapping::general_io::CommandToPWM.

Definition at line 98 of file command_to_pwm_2_dir_pin.cpp.

bool ronex::mapping::general_io::CommandToPWM2PinDir::init_ ( TiXmlElement *  mapping_el,
ros_ethercat_model::RobotState robot,
const char *  ronex_name 
) [protected]

Reimplemented from ronex::mapping::general_io::CommandToPWM.

Definition at line 70 of file command_to_pwm_2_dir_pin.cpp.

This function is not doing anything as we're not propagating a status in this mapping.

Reimplemented from ronex::mapping::general_io::CommandToPWM.

Definition at line 45 of file command_to_pwm_2_dir_pin.hpp.

Propagating the specified joint command to the given PWM module.

Parameters:
jsjoint_state of the joint specified in the transmission

Reimplemented from ronex::mapping::general_io::CommandToPWM.

Definition at line 126 of file command_to_pwm_2_dir_pin.cpp.

bool ronex::mapping::general_io::CommandToPWM2PinDir::try_init_cb_ ( const ros::TimerEvent ,
TiXmlElement *  mapping_el,
ros_ethercat_model::RobotState robot,
const char *  ronex_name 
) [protected, virtual]

Timer callback for the transmission initialization. Stops the init_timer_ when the initialization is successful.

Reimplemented from ronex::mapping::general_io::CommandToPWM.

Definition at line 54 of file command_to_pwm_2_dir_pin.cpp.


Member Data Documentation

digital pin index for the second motor direction digital pin

Definition at line 56 of file command_to_pwm_2_dir_pin.hpp.


The documentation for this class was generated from the following files:


sr_ronex_transmissions
Author(s): Ugo Cupcic, Toni Oliver, Mark Pitchless
autogenerated on Thu Jun 6 2019 21:21:55