dynamixel_tool.h
Go to the documentation of this file.
1 /*******************************************************************************
2 * Copyright 2018 ROBOTIS CO., LTD.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 *******************************************************************************/
16 
17 /* Authors: Taehun Lim (Darby) */
18 
19 #ifndef DYNAMIXEL_TOOL_H
20 #define DYNAMIXEL_TOOL_H
21 
22 #include <string.h>
23 #include <stdio.h>
24 
25 #include "dynamixel_item.h"
26 
28 {
29  private:
30  enum {DYNAMIXEL_BUFFER = 30};
32  uint8_t dxl_cnt_;
33 
34  const char *model_name_;
35  uint16_t model_number_;
36 
39 
41 
42  public:
43  DynamixelTool();
45 
46  void initTool(void);
47 
48  bool addTool(const char *model_name, uint8_t id, const char **log = NULL);
49  bool addTool(uint16_t model_number, uint8_t id, const char **log = NULL);
50 
51  void addDXL(uint8_t id);
52 
53  const char *getModelName(void);
54  uint16_t getModelNumber(void);
55 
56  const uint8_t* getID(void);
57  uint8_t getDynamixelBuffer(void);
58  uint8_t getDynamixelCount(void);
59 
60  float getRPM(void);
61 
62  int64_t getValueOfMinRadianPosition(void);
63  int64_t getValueOfMaxRadianPosition(void);
64  int64_t getValueOfZeroRadianPosition(void);
65 
66  float getMinRadian(void);
67  float getMaxRadian(void);
68 
69  uint8_t getTheNumberOfControlItem(void);
70 
71  const ControlItem *getControlItem(const char *item_name, const char **log = NULL);
72  const ControlItem *getControlTable(void);
73  const ModelInfo *getModelInfo(void);
74 
75  private:
76  bool setControlTable(const char *model_name, const char **log = NULL);
77  bool setControlTable(uint16_t model_number, const char **log = NULL);
78 
79  bool setModelName(uint16_t model_number, const char **log = NULL);
80  bool setModelNumber(const char *model_name, const char **log = NULL);
81 };
82 #endif //DYNAMIXEL_TOOL_H
const ModelInfo * model_info_
const ControlItem * getControlItem(const char *item_name, const char **log=NULL)
const ModelInfo * getModelInfo(void)
bool setControlTable(const char *model_name, const char **log=NULL)
uint16_t model_number_
float getMaxRadian(void)
int64_t getValueOfMaxRadianPosition(void)
static const char * model_name
uint8_t dxl_id_[DYNAMIXEL_BUFFER]
uint8_t dxl_cnt_
float getRPM(void)
float getMinRadian(void)
uint8_t getDynamixelCount(void)
const ControlItem * getControlTable(void)
uint8_t getTheNumberOfControlItem(void)
bool setModelName(uint16_t model_number, const char **log=NULL)
const ControlItem * control_table_
const char * model_name_
int64_t getValueOfZeroRadianPosition(void)
void initTool(void)
const char * getModelName(void)
const uint8_t * getID(void)
void addDXL(uint8_t id)
uint8_t getDynamixelBuffer(void)
bool setModelNumber(const char *model_name, const char **log=NULL)
bool addTool(const char *model_name, uint8_t id, const char **log=NULL)
int64_t getValueOfMinRadianPosition(void)
uint16_t getModelNumber(void)
uint16_t the_number_of_control_item_


dynamixel_workbench_toolbox
Author(s): Darby Lim , Ryan Shim
autogenerated on Mon Sep 28 2020 03:37:05