Public Member Functions | Private Types | Private Member Functions | Private Attributes | List of all members
DynamixelTool Class Reference

#include <dynamixel_tool.h>

Public Member Functions

void addDXL (uint8_t id)
 
bool addTool (const char *model_name, uint8_t id, const char **log=NULL)
 
bool addTool (uint16_t model_number, uint8_t id, const char **log=NULL)
 
 DynamixelTool ()
 
const ControlItemgetControlItem (const char *item_name, const char **log=NULL)
 
const ControlItemgetControlTable (void)
 
uint8_t getDynamixelBuffer (void)
 
uint8_t getDynamixelCount (void)
 
const uint8_t * getID (void)
 
float getMaxRadian (void)
 
float getMinRadian (void)
 
const ModelInfogetModelInfo (void)
 
const char * getModelName (void)
 
uint16_t getModelNumber (void)
 
float getRPM (void)
 
uint8_t getTheNumberOfControlItem (void)
 
int64_t getValueOfMaxRadianPosition (void)
 
int64_t getValueOfMinRadianPosition (void)
 
int64_t getValueOfZeroRadianPosition (void)
 
void initTool (void)
 
 ~DynamixelTool ()
 

Private Types

enum  { DYNAMIXEL_BUFFER = 30 }
 

Private Member Functions

bool setControlTable (const char *model_name, const char **log=NULL)
 
bool setControlTable (uint16_t model_number, const char **log=NULL)
 
bool setModelName (uint16_t model_number, const char **log=NULL)
 
bool setModelNumber (const char *model_name, const char **log=NULL)
 

Private Attributes

const ControlItemcontrol_table_
 
uint8_t dxl_cnt_
 
uint8_t dxl_id_ [DYNAMIXEL_BUFFER]
 
const ModelInfomodel_info_
 
const char * model_name_
 
uint16_t model_number_
 
uint16_t the_number_of_control_item_
 

Detailed Description

Definition at line 27 of file dynamixel_tool.h.

Member Enumeration Documentation

◆ anonymous enum

anonymous enum
private
Enumerator
DYNAMIXEL_BUFFER 

Definition at line 44 of file dynamixel_tool.h.

Constructor & Destructor Documentation

◆ DynamixelTool()

DynamixelTool::DynamixelTool ( )

Definition at line 116 of file dynamixel_tool.cpp.

◆ ~DynamixelTool()

DynamixelTool::~DynamixelTool ( )

Definition at line 118 of file dynamixel_tool.cpp.

Member Function Documentation

◆ addDXL()

void DynamixelTool::addDXL ( uint8_t  id)

Definition at line 160 of file dynamixel_tool.cpp.

◆ addTool() [1/2]

bool DynamixelTool::addTool ( const char *  model_name,
uint8_t  id,
const char **  log = NULL 
)

Definition at line 128 of file dynamixel_tool.cpp.

◆ addTool() [2/2]

bool DynamixelTool::addTool ( uint16_t  model_number,
uint8_t  id,
const char **  log = NULL 
)

Definition at line 144 of file dynamixel_tool.cpp.

◆ getControlItem()

const ControlItem * DynamixelTool::getControlItem ( const char *  item_name,
const char **  log = NULL 
)

Definition at line 298 of file dynamixel_tool.cpp.

◆ getControlTable()

const ControlItem * DynamixelTool::getControlTable ( void  )

Definition at line 318 of file dynamixel_tool.cpp.

◆ getDynamixelBuffer()

uint8_t DynamixelTool::getDynamixelBuffer ( void  )

Definition at line 258 of file dynamixel_tool.cpp.

◆ getDynamixelCount()

uint8_t DynamixelTool::getDynamixelCount ( void  )

Definition at line 253 of file dynamixel_tool.cpp.

◆ getID()

const uint8_t * DynamixelTool::getID ( void  )

Definition at line 246 of file dynamixel_tool.cpp.

◆ getMaxRadian()

float DynamixelTool::getMaxRadian ( void  )

Definition at line 288 of file dynamixel_tool.cpp.

◆ getMinRadian()

float DynamixelTool::getMinRadian ( void  )

Definition at line 283 of file dynamixel_tool.cpp.

◆ getModelInfo()

const ModelInfo * DynamixelTool::getModelInfo ( void  )

Definition at line 323 of file dynamixel_tool.cpp.

◆ getModelName()

const char * DynamixelTool::getModelName ( void  )

Definition at line 236 of file dynamixel_tool.cpp.

◆ getModelNumber()

uint16_t DynamixelTool::getModelNumber ( void  )

Definition at line 241 of file dynamixel_tool.cpp.

◆ getRPM()

float DynamixelTool::getRPM ( void  )

Definition at line 263 of file dynamixel_tool.cpp.

◆ getTheNumberOfControlItem()

uint8_t DynamixelTool::getTheNumberOfControlItem ( void  )

Definition at line 293 of file dynamixel_tool.cpp.

◆ getValueOfMaxRadianPosition()

int64_t DynamixelTool::getValueOfMaxRadianPosition ( void  )

Definition at line 273 of file dynamixel_tool.cpp.

◆ getValueOfMinRadianPosition()

int64_t DynamixelTool::getValueOfMinRadianPosition ( void  )

Definition at line 268 of file dynamixel_tool.cpp.

◆ getValueOfZeroRadianPosition()

int64_t DynamixelTool::getValueOfZeroRadianPosition ( void  )

Definition at line 278 of file dynamixel_tool.cpp.

◆ initTool()

void DynamixelTool::initTool ( void  )

Definition at line 120 of file dynamixel_tool.cpp.

◆ setControlTable() [1/2]

bool DynamixelTool::setControlTable ( const char *  model_name,
const char **  log = NULL 
)
private

Definition at line 165 of file dynamixel_tool.cpp.

◆ setControlTable() [2/2]

bool DynamixelTool::setControlTable ( uint16_t  model_number,
const char **  log = NULL 
)
private

Definition at line 183 of file dynamixel_tool.cpp.

◆ setModelName()

bool DynamixelTool::setModelName ( uint16_t  model_number,
const char **  log = NULL 
)
private

Definition at line 199 of file dynamixel_tool.cpp.

◆ setModelNumber()

bool DynamixelTool::setModelNumber ( const char *  model_name,
const char **  log = NULL 
)
private

Definition at line 217 of file dynamixel_tool.cpp.

Member Data Documentation

◆ control_table_

const ControlItem* DynamixelTool::control_table_
private

Definition at line 51 of file dynamixel_tool.h.

◆ dxl_cnt_

uint8_t DynamixelTool::dxl_cnt_
private

Definition at line 46 of file dynamixel_tool.h.

◆ dxl_id_

uint8_t DynamixelTool::dxl_id_[DYNAMIXEL_BUFFER]
private

Definition at line 45 of file dynamixel_tool.h.

◆ model_info_

const ModelInfo* DynamixelTool::model_info_
private

Definition at line 52 of file dynamixel_tool.h.

◆ model_name_

const char* DynamixelTool::model_name_
private

Definition at line 48 of file dynamixel_tool.h.

◆ model_number_

uint16_t DynamixelTool::model_number_
private

Definition at line 49 of file dynamixel_tool.h.

◆ the_number_of_control_item_

uint16_t DynamixelTool::the_number_of_control_item_
private

Definition at line 54 of file dynamixel_tool.h.


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


dynamixel_workbench_toolbox
Author(s): Darby Lim , Ryan Shim
autogenerated on Wed Mar 2 2022 00:13:18