ned3pro_end_effector_reg.hpp
Go to the documentation of this file.
1 /*
2 ned3pro_end_effector_reg.hpp
3 Copyright (C) 2024 Niryo
4 All rights reserved.
5 This program is free software: you can redistribute it and/or modify
6 it under the terms of the GNU General Public License as published by
7 the Free Software Foundation, either version 3 of the License, or
8 (at your option) any later version.
9 This program is distributed in the hope that it will be useful,
10 but WITHOUT ANY WARRANTY; without even the implied warranty of
11 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 GNU General Public License for more details.
13 You should have received a copy of the GNU General Public License
14 along with this program. If not, see <http:// www.gnu.org/licenses/>.
15 */
16 
17 #ifndef NED3PRO_END_EFFECTOR_REG_HPP
18 #define NED3PRO_END_EFFECTOR_REG_HPP
19 
20 #include <memory>
21 #include "common/model/hardware_type_enum.hpp"
22 
23 namespace ttl_driver
24 {
26  {
27  static constexpr common::model::EHardwareType motor_type = common::model::EHardwareType::END_EFFECTOR;
28 
29  static constexpr float PROTOCOL_VERSION = 2.0;
30  static constexpr int MODEL_NUMBER = 2101;
31  static constexpr int VOLTAGE_CONVERSION = 1000;
32 
33  // see table here : http:// support.robotis.com/en/product/actuator/dynamixel_x/xl_series/xl-320.htm
34  // EEPROM
35  static constexpr uint16_t ADDR_MODEL_NUMBER = 0;
36  using TYPE_MODEL_NUMBER = uint16_t;
37 
38  static constexpr uint16_t ADDR_ID = 7;
39  using TYPE_ID = uint8_t;
40 
41  static constexpr uint16_t ADDR_BAUDRATE = 8;
42  using TYPE_BAUDRATE = uint8_t;
43 
44  static constexpr uint16_t ADDR_FIRMWARE_VERSION = 59;
45  using TYPE_FIRMWARE_VERSION = uint32_t;
46 
47  static constexpr uint16_t ADDR_HW_ERROR_STATUS = 70;
48  using TYPE_HW_ERROR_STATUS = uint8_t;
49 
50  static constexpr uint16_t ADDR_PRESENT_VOLTAGE = 144;
51  using TYPE_PRESENT_VOLTAGE = uint16_t;
52 
53  static constexpr uint16_t ADDR_PRESENT_TEMPERATURE = 146;
54  using TYPE_PRESENT_TEMPERATURE = uint8_t;
55 
56  // specific to EE
57  static constexpr uint16_t ADDR_COLLISION_STATUS = 2052;
58  using TYPE_COLLISION_STATUS = uint8_t;
59 
60  using TYPE_BUTTON_STATUS = uint8_t;
61  static constexpr uint16_t ADDR_STATE_BUTTON_FREEDRIVE = 2053;
62  static constexpr uint16_t ADDR_STATE_BUTTON_SAVE = 2054;
63  static constexpr uint16_t ADDR_STATE_BUTTON_CUSTOM = 2055;
64 
65  static constexpr uint16_t ADDR_DIGITAL_INPUT = 2056;
66  using TYPE_DIGITAL_IN = uint8_t;
67 
68  static constexpr uint16_t ADDR_DIGITAL_OUTPUT = 2057;
69  using TYPE_DIGITAL_OUT = uint8_t;
70 
71  static constexpr uint16_t ADDR_COLLISION_DETECT_THRESH_ALGO_1 = 2058;
73 
74  static constexpr uint16_t ADDR_COLLISION_DETECT_THRESH_ALGO_2 = 2062;
76 
77  static constexpr uint16_t ADDR_ACCELERO_VALUE_X = 2066;
78  using TYPE_ACCELERO_VALUE_X = uint32_t;
79 
80  static constexpr uint16_t ADDR_ACCELERO_VALUE_Y = 2070;
81  using TYPE_ACCELERO_VALUE_Y = uint32_t;
82 
83  static constexpr uint16_t ADDR_ACCELERO_VALUE_Z = 2074;
84  using TYPE_ACCELERO_VALUE_Z = uint32_t;
85 
86  // Firmware status
87 
88  static constexpr uint16_t ADDR_FIRMWARE_RUNNING = 8192;
89  using TYPE_FIRMWARE_RUNNING = uint8_t;
90 
91  static constexpr uint16_t ADDR_ENTER_BOOTLOADER = 8193;
92  using TYPE_ENTER_BOOTLOADER = uint32_t;
93 
94  static constexpr uint16_t ADDR_OTA_BEGIN = 8197;
95  using TYPE_OTA_BEGIN = uint8_t;
96 
97  static constexpr uint16_t ADDR_OTA_WRITE = 8198;
98  using TYPE_OTA_WRITE = uint8_t[520];
99 
100  static constexpr uint16_t ADDR_OTA_END = 8718;
101  using TYPE_OTA_END = uint32_t;
102 
103  static constexpr uint16_t ADDR_OTA_ERASE = 8722;
104  using TYPE_OTA_ERASE = uint32_t;
105  };
106 } // ttl_driver
107 
108 #endif // NED3PRO_END_EFFECTOR_REG_HPP
ttl_driver::Ned3ProEndEffectorReg::TYPE_ACCELERO_VALUE_X
uint32_t TYPE_ACCELERO_VALUE_X
Definition: ned3pro_end_effector_reg.hpp:78
ttl_driver::Ned3ProEndEffectorReg::ADDR_PRESENT_TEMPERATURE
static constexpr uint16_t ADDR_PRESENT_TEMPERATURE
Definition: ned3pro_end_effector_reg.hpp:53
ttl_driver::Ned3ProEndEffectorReg
Definition: ned3pro_end_effector_reg.hpp:25
ttl_driver::Ned3ProEndEffectorReg::TYPE_DIGITAL_IN
uint8_t TYPE_DIGITAL_IN
Definition: ned3pro_end_effector_reg.hpp:66
ttl_driver::Ned3ProEndEffectorReg::ADDR_ACCELERO_VALUE_X
static constexpr uint16_t ADDR_ACCELERO_VALUE_X
Definition: ned3pro_end_effector_reg.hpp:77
ttl_driver::Ned3ProEndEffectorReg::TYPE_ENTER_BOOTLOADER
uint32_t TYPE_ENTER_BOOTLOADER
Definition: ned3pro_end_effector_reg.hpp:92
ttl_driver::Ned3ProEndEffectorReg::PROTOCOL_VERSION
static constexpr float PROTOCOL_VERSION
Definition: ned3pro_end_effector_reg.hpp:29
ttl_driver::Ned3ProEndEffectorReg::ADDR_COLLISION_DETECT_THRESH_ALGO_1
static constexpr uint16_t ADDR_COLLISION_DETECT_THRESH_ALGO_1
Definition: ned3pro_end_effector_reg.hpp:71
ttl_driver::Ned3ProEndEffectorReg::ADDR_ENTER_BOOTLOADER
static constexpr uint16_t ADDR_ENTER_BOOTLOADER
Definition: ned3pro_end_effector_reg.hpp:91
ttl_driver::Ned3ProEndEffectorReg::TYPE_BUTTON_STATUS
uint8_t TYPE_BUTTON_STATUS
Definition: ned3pro_end_effector_reg.hpp:60
ttl_driver::Ned3ProEndEffectorReg::ADDR_HW_ERROR_STATUS
static constexpr uint16_t ADDR_HW_ERROR_STATUS
Definition: ned3pro_end_effector_reg.hpp:47
ttl_driver::Ned3ProEndEffectorReg::TYPE_MODEL_NUMBER
uint16_t TYPE_MODEL_NUMBER
Definition: ned3pro_end_effector_reg.hpp:36
ttl_driver::Ned3ProEndEffectorReg::ADDR_FIRMWARE_RUNNING
static constexpr uint16_t ADDR_FIRMWARE_RUNNING
Definition: ned3pro_end_effector_reg.hpp:88
ttl_driver::Ned3ProEndEffectorReg::ADDR_COLLISION_STATUS
static constexpr uint16_t ADDR_COLLISION_STATUS
Definition: ned3pro_end_effector_reg.hpp:57
ttl_driver::Ned3ProEndEffectorReg::ADDR_DIGITAL_INPUT
static constexpr uint16_t ADDR_DIGITAL_INPUT
Definition: ned3pro_end_effector_reg.hpp:65
ttl_driver::Ned3ProEndEffectorReg::TYPE_OTA_ERASE
uint32_t TYPE_OTA_ERASE
Definition: ned3pro_end_effector_reg.hpp:104
ttl_driver::Ned3ProEndEffectorReg::ADDR_OTA_END
static constexpr uint16_t ADDR_OTA_END
Definition: ned3pro_end_effector_reg.hpp:100
ttl_driver::Ned3ProEndEffectorReg::ADDR_COLLISION_DETECT_THRESH_ALGO_2
static constexpr uint16_t ADDR_COLLISION_DETECT_THRESH_ALGO_2
Definition: ned3pro_end_effector_reg.hpp:74
ttl_driver::Ned3ProEndEffectorReg::ADDR_ID
static constexpr uint16_t ADDR_ID
Definition: ned3pro_end_effector_reg.hpp:38
ttl_driver::Ned3ProEndEffectorReg::TYPE_PRESENT_TEMPERATURE
uint8_t TYPE_PRESENT_TEMPERATURE
Definition: ned3pro_end_effector_reg.hpp:54
ttl_driver::Ned3ProEndEffectorReg::TYPE_OTA_WRITE
uint8_t[520] TYPE_OTA_WRITE
Definition: ned3pro_end_effector_reg.hpp:98
ttl_driver::Ned3ProEndEffectorReg::VOLTAGE_CONVERSION
static constexpr int VOLTAGE_CONVERSION
Definition: ned3pro_end_effector_reg.hpp:31
ttl_driver::Ned3ProEndEffectorReg::TYPE_OTA_BEGIN
uint8_t TYPE_OTA_BEGIN
Definition: ned3pro_end_effector_reg.hpp:95
ttl_driver::Ned3ProEndEffectorReg::ADDR_STATE_BUTTON_FREEDRIVE
static constexpr uint16_t ADDR_STATE_BUTTON_FREEDRIVE
Definition: ned3pro_end_effector_reg.hpp:61
ttl_driver::Ned3ProEndEffectorReg::TYPE_ACCELERO_VALUE_Y
uint32_t TYPE_ACCELERO_VALUE_Y
Definition: ned3pro_end_effector_reg.hpp:81
ttl_driver::Ned3ProEndEffectorReg::ADDR_OTA_ERASE
static constexpr uint16_t ADDR_OTA_ERASE
Definition: ned3pro_end_effector_reg.hpp:103
ttl_driver::Ned3ProEndEffectorReg::TYPE_DIGITAL_OUT
uint8_t TYPE_DIGITAL_OUT
Definition: ned3pro_end_effector_reg.hpp:69
ttl_driver::Ned3ProEndEffectorReg::ADDR_DIGITAL_OUTPUT
static constexpr uint16_t ADDR_DIGITAL_OUTPUT
Definition: ned3pro_end_effector_reg.hpp:68
ttl_driver::Ned3ProEndEffectorReg::TYPE_COLLISION_THRESHOLD_ALGO_2
uint32_t TYPE_COLLISION_THRESHOLD_ALGO_2
Definition: ned3pro_end_effector_reg.hpp:75
ttl_driver
Definition: abstract_dxl_driver.hpp:30
ttl_driver::Ned3ProEndEffectorReg::motor_type
static constexpr common::model::EHardwareType motor_type
Definition: ned3pro_end_effector_reg.hpp:27
ttl_driver::Ned3ProEndEffectorReg::ADDR_BAUDRATE
static constexpr uint16_t ADDR_BAUDRATE
Definition: ned3pro_end_effector_reg.hpp:41
ttl_driver::Ned3ProEndEffectorReg::ADDR_FIRMWARE_VERSION
static constexpr uint16_t ADDR_FIRMWARE_VERSION
Definition: ned3pro_end_effector_reg.hpp:44
ttl_driver::Ned3ProEndEffectorReg::ADDR_PRESENT_VOLTAGE
static constexpr uint16_t ADDR_PRESENT_VOLTAGE
Definition: ned3pro_end_effector_reg.hpp:50
ttl_driver::Ned3ProEndEffectorReg::TYPE_ACCELERO_VALUE_Z
uint32_t TYPE_ACCELERO_VALUE_Z
Definition: ned3pro_end_effector_reg.hpp:84
ttl_driver::Ned3ProEndEffectorReg::ADDR_ACCELERO_VALUE_Z
static constexpr uint16_t ADDR_ACCELERO_VALUE_Z
Definition: ned3pro_end_effector_reg.hpp:83
ttl_driver::Ned3ProEndEffectorReg::ADDR_OTA_WRITE
static constexpr uint16_t ADDR_OTA_WRITE
Definition: ned3pro_end_effector_reg.hpp:97
ttl_driver::Ned3ProEndEffectorReg::TYPE_HW_ERROR_STATUS
uint8_t TYPE_HW_ERROR_STATUS
Definition: ned3pro_end_effector_reg.hpp:48
ttl_driver::Ned3ProEndEffectorReg::TYPE_BAUDRATE
uint8_t TYPE_BAUDRATE
Definition: ned3pro_end_effector_reg.hpp:42
ttl_driver::Ned3ProEndEffectorReg::ADDR_OTA_BEGIN
static constexpr uint16_t ADDR_OTA_BEGIN
Definition: ned3pro_end_effector_reg.hpp:94
ttl_driver::Ned3ProEndEffectorReg::ADDR_MODEL_NUMBER
static constexpr uint16_t ADDR_MODEL_NUMBER
Definition: ned3pro_end_effector_reg.hpp:35
ttl_driver::Ned3ProEndEffectorReg::TYPE_COLLISION_THRESHOLD_ALGO_1
uint32_t TYPE_COLLISION_THRESHOLD_ALGO_1
Definition: ned3pro_end_effector_reg.hpp:72
ttl_driver::Ned3ProEndEffectorReg::TYPE_FIRMWARE_VERSION
uint32_t TYPE_FIRMWARE_VERSION
Definition: ned3pro_end_effector_reg.hpp:45
ttl_driver::Ned3ProEndEffectorReg::TYPE_FIRMWARE_RUNNING
uint8_t TYPE_FIRMWARE_RUNNING
Definition: ned3pro_end_effector_reg.hpp:89
ttl_driver::Ned3ProEndEffectorReg::TYPE_ID
uint8_t TYPE_ID
Definition: ned3pro_end_effector_reg.hpp:39
ttl_driver::Ned3ProEndEffectorReg::TYPE_OTA_END
uint32_t TYPE_OTA_END
Definition: ned3pro_end_effector_reg.hpp:101
ttl_driver::Ned3ProEndEffectorReg::TYPE_COLLISION_STATUS
uint8_t TYPE_COLLISION_STATUS
Definition: ned3pro_end_effector_reg.hpp:58
ttl_driver::Ned3ProEndEffectorReg::MODEL_NUMBER
static constexpr int MODEL_NUMBER
Definition: ned3pro_end_effector_reg.hpp:30
ttl_driver::Ned3ProEndEffectorReg::TYPE_PRESENT_VOLTAGE
uint16_t TYPE_PRESENT_VOLTAGE
Definition: ned3pro_end_effector_reg.hpp:51
ttl_driver::Ned3ProEndEffectorReg::ADDR_STATE_BUTTON_CUSTOM
static constexpr uint16_t ADDR_STATE_BUTTON_CUSTOM
Definition: ned3pro_end_effector_reg.hpp:63
ttl_driver::Ned3ProEndEffectorReg::ADDR_STATE_BUTTON_SAVE
static constexpr uint16_t ADDR_STATE_BUTTON_SAVE
Definition: ned3pro_end_effector_reg.hpp:62
ttl_driver::Ned3ProEndEffectorReg::ADDR_ACCELERO_VALUE_Y
static constexpr uint16_t ADDR_ACCELERO_VALUE_Y
Definition: ned3pro_end_effector_reg.hpp:80


ttl_driver
Author(s): Clement Cocquempot
autogenerated on Wed May 21 2025 08:30:14