ros2_canopen  master
C++ ROS CANopen Library
Public Types | Public Member Functions | List of all members
ros2_canopen::ProfiledPositionMode Class Reference

#include <profiled_position_mode.hpp>

Inheritance diagram for ros2_canopen::ProfiledPositionMode:
Inheritance graph
[legend]
Collaboration diagram for ros2_canopen::ProfiledPositionMode:
Collaboration graph
[legend]

Public Types

enum  SW_masks { MASK_Reached = (1 << State402::SW_Target_reached) , MASK_Acknowledged = (1 << State402::SW_Operation_mode_specific0) , MASK_Error = (1 << State402::SW_Operation_mode_specific1) }
 
enum  CW_bits { CW_NewPoint = Command402::CW_Operation_mode_specific0 , CW_Immediate = Command402::CW_Operation_mode_specific1 , CW_Blending = Command402::CW_Operation_mode_specific3 }
 
- Public Types inherited from ros2_canopen::Mode
typedef WordAccessor<(1<< Command402::CW_Operation_mode_specific0)|(1<< Command402::CW_Operation_mode_specific1)|(1<< Command402::CW_Operation_mode_specific2)|(1<< Command402::CW_Operation_mode_specific3)> OpModeAccesser
 

Public Member Functions

 ProfiledPositionMode (std::shared_ptr< LelyDriverBridge > driver)
 
virtual bool start ()
 
virtual bool read (const uint16_t &sw)
 
virtual bool write (OpModeAccesser &cw)
 
- Public Member Functions inherited from ros2_canopen::ModeTargetHelper< int32_t >
 ModeTargetHelper (uint16_t mode)
 
bool hasTarget ()
 
int32_t getTarget ()
 
virtual bool setTarget (const double &val)
 
- Public Member Functions inherited from ros2_canopen::Mode
 Mode (uint16_t id)
 
virtual ~Mode ()
 

Additional Inherited Members

- Public Attributes inherited from ros2_canopen::Mode
const uint16_t mode_id_
 

Member Enumeration Documentation

◆ SW_masks

Enumerator
MASK_Reached 
MASK_Acknowledged 
MASK_Error 

◆ CW_bits

Enumerator
CW_NewPoint 
CW_Immediate 
CW_Blending 

Constructor & Destructor Documentation

◆ ProfiledPositionMode()

ros2_canopen::ProfiledPositionMode::ProfiledPositionMode ( std::shared_ptr< LelyDriverBridge driver)
inline

Member Function Documentation

◆ start()

virtual bool ros2_canopen::ProfiledPositionMode::start ( )
inlinevirtual

◆ read()

virtual bool ros2_canopen::ProfiledPositionMode::read ( const uint16_t &  sw)
inlinevirtual

Implements ros2_canopen::Mode.

◆ write()

virtual bool ros2_canopen::ProfiledPositionMode::write ( OpModeAccesser cw)
inlinevirtual

Implements ros2_canopen::Mode.


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