dynamixel.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 /*
18  * dynamixel.h
19  *
20  * Created on: 2015. 12. 8.
21  * Author: zerom
22  */
23 
24 #ifndef ROBOTIS_DEVICE_DYNAMIXEL_H_
25 #define ROBOTIS_DEVICE_DYNAMIXEL_H_
26 
27 
28 #include <map>
29 #include <vector>
30 #include <string>
31 
32 #include "control_table_item.h"
33 #include "device.h"
34 #include "dynamixel_state.h"
35 
36 namespace robotis_framework
37 {
38 
39 class Dynamixel : public Device
40 {
41 public:
42  std::string ctrl_module_name_;
44 
47 
51  double min_radian_;
52  double max_radian_;
53 
67 
68  Dynamixel(int id, std::string model_name, float protocol_version);
69 
70  double convertValue2Radian(int32_t value);
71  int32_t convertRadian2Value(double radian);
72 
73  double convertValue2Velocity(int32_t value);
74  int32_t convertVelocity2Value(double velocity);
75 
76  double convertValue2Torque(int16_t value);
77  int16_t convertTorque2Value(double torque);
78 };
79 
80 }
81 
82 
83 #endif /* ROBOTIS_DEVICE_DYNAMIXEL_H_ */
int32_t value_of_max_radian_position_
Definition: dynamixel.h:50
double convertValue2Torque(int16_t value)
Definition: dynamixel.cpp:130
ControlTableItem * present_velocity_item_
Definition: dynamixel.h:56
double convertValue2Radian(int32_t value)
Definition: dynamixel.cpp:62
ControlTableItem * position_p_gain_item_
Definition: dynamixel.h:61
ControlTableItem * velocity_p_gain_item_
Definition: dynamixel.h:64
double convertValue2Velocity(int32_t value)
Definition: dynamixel.cpp:120
std::string ctrl_module_name_
Definition: dynamixel.h:42
ControlTableItem * present_position_item_
Definition: dynamixel.h:55
ControlTableItem * goal_current_item_
Definition: dynamixel.h:60
int32_t convertRadian2Value(double radian)
Definition: dynamixel.cpp:90
ControlTableItem * goal_position_item_
Definition: dynamixel.h:58
ControlTableItem * torque_enable_item_
Definition: dynamixel.h:54
int32_t convertVelocity2Value(double velocity)
Definition: dynamixel.cpp:125
ControlTableItem * position_i_gain_item_
Definition: dynamixel.h:62
ControlTableItem * velocity_i_gain_item_
Definition: dynamixel.h:65
ControlTableItem * position_d_gain_item_
Definition: dynamixel.h:63
DynamixelState * dxl_state_
Definition: dynamixel.h:43
int32_t value_of_min_radian_position_
Definition: dynamixel.h:49
ControlTableItem * goal_velocity_item_
Definition: dynamixel.h:59
int16_t convertTorque2Value(double torque)
Definition: dynamixel.cpp:135
ControlTableItem * velocity_d_gain_item_
Definition: dynamixel.h:66
ControlTableItem * present_current_item_
Definition: dynamixel.h:57
Dynamixel(int id, std::string model_name, float protocol_version)
Definition: dynamixel.cpp:28


robotis_device
Author(s): Zerom , Kayman , SCH
autogenerated on Mon Jun 10 2019 14:35:09