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
private
Enumerator
DYNAMIXEL_BUFFER 

Definition at line 30 of file dynamixel_tool.h.

Constructor & Destructor Documentation

DynamixelTool::DynamixelTool ( )

Definition at line 113 of file dynamixel_tool.cpp.

DynamixelTool::~DynamixelTool ( )

Definition at line 115 of file dynamixel_tool.cpp.

Member Function Documentation

void DynamixelTool::addDXL ( uint8_t  id)

Definition at line 157 of file dynamixel_tool.cpp.

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

Definition at line 125 of file dynamixel_tool.cpp.

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

Definition at line 141 of file dynamixel_tool.cpp.

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

Definition at line 295 of file dynamixel_tool.cpp.

const ControlItem * DynamixelTool::getControlTable ( void  )

Definition at line 315 of file dynamixel_tool.cpp.

uint8_t DynamixelTool::getDynamixelBuffer ( void  )

Definition at line 255 of file dynamixel_tool.cpp.

uint8_t DynamixelTool::getDynamixelCount ( void  )

Definition at line 250 of file dynamixel_tool.cpp.

const uint8_t * DynamixelTool::getID ( void  )

Definition at line 243 of file dynamixel_tool.cpp.

float DynamixelTool::getMaxRadian ( void  )

Definition at line 285 of file dynamixel_tool.cpp.

float DynamixelTool::getMinRadian ( void  )

Definition at line 280 of file dynamixel_tool.cpp.

const ModelInfo * DynamixelTool::getModelInfo ( void  )

Definition at line 320 of file dynamixel_tool.cpp.

const char * DynamixelTool::getModelName ( void  )

Definition at line 233 of file dynamixel_tool.cpp.

uint16_t DynamixelTool::getModelNumber ( void  )

Definition at line 238 of file dynamixel_tool.cpp.

float DynamixelTool::getRPM ( void  )

Definition at line 260 of file dynamixel_tool.cpp.

uint8_t DynamixelTool::getTheNumberOfControlItem ( void  )

Definition at line 290 of file dynamixel_tool.cpp.

int64_t DynamixelTool::getValueOfMaxRadianPosition ( void  )

Definition at line 270 of file dynamixel_tool.cpp.

int64_t DynamixelTool::getValueOfMinRadianPosition ( void  )

Definition at line 265 of file dynamixel_tool.cpp.

int64_t DynamixelTool::getValueOfZeroRadianPosition ( void  )

Definition at line 275 of file dynamixel_tool.cpp.

void DynamixelTool::initTool ( void  )

Definition at line 117 of file dynamixel_tool.cpp.

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

Definition at line 162 of file dynamixel_tool.cpp.

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

Definition at line 180 of file dynamixel_tool.cpp.

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

Definition at line 196 of file dynamixel_tool.cpp.

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

Definition at line 214 of file dynamixel_tool.cpp.

Member Data Documentation

const ControlItem* DynamixelTool::control_table_
private

Definition at line 37 of file dynamixel_tool.h.

uint8_t DynamixelTool::dxl_cnt_
private

Definition at line 32 of file dynamixel_tool.h.

uint8_t DynamixelTool::dxl_id_[DYNAMIXEL_BUFFER]
private

Definition at line 31 of file dynamixel_tool.h.

const ModelInfo* DynamixelTool::model_info_
private

Definition at line 38 of file dynamixel_tool.h.

const char* DynamixelTool::model_name_
private

Definition at line 34 of file dynamixel_tool.h.

uint16_t DynamixelTool::model_number_
private

Definition at line 35 of file dynamixel_tool.h.

uint16_t DynamixelTool::the_number_of_control_item_
private

Definition at line 40 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 Mon Sep 28 2020 03:37:05