#include <motor.h>
Classes | |
class | Allocator |
Public Member Functions | |
virtual bool | enterModeAndWait (uint16_t mode) |
virtual uint16_t | getMode () |
virtual bool | isModeSupported (uint16_t mode) |
Motor402 (const std::string &name, ObjectStorageSharedPtr storage, const canopen::Settings &settings) | |
virtual void | registerDefaultModes (ObjectStorageSharedPtr storage) |
template<typename T > | |
bool | registerMode (uint16_t mode) |
template<typename T , typename T1 > | |
bool | registerMode (uint16_t mode, const T1 &t1) |
template<typename T , typename T1 , typename T2 > | |
bool | registerMode (uint16_t mode, const T1 &t1, const T2 &t2) |
virtual bool | setTarget (double val) |
Public Member Functions inherited from canopen::Layer | |
void | diag (LayerReport &report) |
LayerState | getLayerState () |
void | halt (LayerStatus &status) |
void | init (LayerStatus &status) |
Layer (const std::string &n) | |
void | read (LayerStatus &status) |
void | recover (LayerStatus &status) |
void | shutdown (LayerStatus &status) |
void | write (LayerStatus &status) |
virtual | ~Layer () |
Protected Member Functions | |
virtual void | handleDiag (LayerReport &report) |
virtual void | handleHalt (LayerStatus &status) |
virtual void | handleInit (LayerStatus &status) |
virtual void | handleRead (LayerStatus &status, const LayerState ¤t_state) |
virtual void | handleRecover (LayerStatus &status) |
virtual void | handleShutdown (LayerStatus &status) |
virtual void | handleWrite (LayerStatus &status, const LayerState ¤t_state) |
Protected Member Functions inherited from canopen::MotorBase | |
MotorBase (const std::string &name) | |
Private Types | |
typedef boost::function< void()> | AllocFuncType |
Private Member Functions | |
ModeSharedPtr | allocMode (uint16_t mode) |
template<typename T , typename T1 > | |
void | createAndRegister (uint16_t mode, const T1 &t1) |
template<typename T , typename T1 , typename T2 > | |
void | createAndRegister (uint16_t mode, const T1 &t1, const T2 &t2) |
template<typename T > | |
void | createAndRegister0 (uint16_t mode) |
virtual bool | isModeSupportedByDevice (uint16_t mode) |
bool | readState (LayerStatus &status, const LayerState ¤t_state) |
void | registerMode (uint16_t id, const ModeSharedPtr &m) |
bool | switchMode (LayerStatus &status, uint16_t mode) |
bool | switchState (LayerStatus &status, const State402::InternalState &target) |
Private Attributes | |
uint16_t | control_word_ |
canopen::ObjectStorage::Entry< uint16_t > | control_word_entry_ |
boost::mutex | cw_mutex_ |
boost::mutex | map_mutex_ |
boost::unordered_map< uint16_t, AllocFuncType > | mode_allocators_ |
boost::condition_variable | mode_cond_ |
uint16_t | mode_id_ |
boost::mutex | mode_mutex_ |
boost::unordered_map< uint16_t, ModeSharedPtr > | modes_ |
const bool | monitor_mode_ |
canopen::ObjectStorage::Entry< int8_t > | op_mode_ |
canopen::ObjectStorage::Entry< int8_t > | op_mode_display_ |
ModeSharedPtr | selected_mode_ |
boost::atomic< bool > | start_fault_reset_ |
State402 | state_handler_ |
const boost::chrono::seconds | state_switch_timeout_ |
boost::atomic< uint16_t > | status_word_ |
canopen::ObjectStorage::Entry< uint16_t > | status_word_entry_ |
canopen::ObjectStorage::Entry< uint32_t > | supported_drive_modes_ |
const State402::InternalState | switching_state_ |
boost::atomic< State402::InternalState > | target_state_ |
Additional Inherited Members | |
Public Types inherited from canopen::MotorBase | |
typedef boost::shared_ptr< MotorBase > | MotorBaseSharedPtr |
enum | OperationMode { No_Mode = 0, Profiled_Position = 1, Velocity = 2, Profiled_Velocity = 3, Profiled_Torque = 4, Reserved = 5, Homing = 6, Interpolated_Position = 7, Cyclic_Synchronous_Position = 8, Cyclic_Synchronous_Velocity = 9, Cyclic_Synchronous_Torque = 10 } |
Public Types inherited from canopen::Layer | |
enum | LayerState |
Public Attributes inherited from canopen::Layer | |
Error | |
Halt | |
Init | |
const std::string | name |
Off | |
Ready | |
Recover | |
Shutdown | |
|
private |
|
inline |
|
private |
|
inlineprivate |
|
inlineprivate |
|
inlineprivate |
|
virtual |
Implements canopen::MotorBase.
|
virtual |
Implements canopen::MotorBase.
|
protectedvirtual |
Implements canopen::Layer.
|
protectedvirtual |
Implements canopen::Layer.
|
protectedvirtual |
Implements canopen::Layer.
|
protectedvirtual |
Implements canopen::Layer.
|
protectedvirtual |
Implements canopen::Layer.
|
protectedvirtual |
Implements canopen::Layer.
|
protectedvirtual |
Implements canopen::Layer.
|
virtual |
Implements canopen::MotorBase.
|
privatevirtual |
|
private |
|
inlinevirtual |
Reimplemented from canopen::MotorBase.
|
inline |
|
inline |
|
inline |
|
private |
|
virtual |
Implements canopen::MotorBase.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |