Skip to content

Commit 6193fac

Browse files
committed
Modified packages
Signed-off-by: Sungho Woo <[email protected]>
1 parent 701fab1 commit 6193fac

File tree

10 files changed

+24
-41
lines changed

10 files changed

+24
-41
lines changed

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -77,9 +77,9 @@ To effectively use the **Dynamixel Hardware Interface** in a ROS 2 control syste
7777
These parameters define how the interface communicates with the Dynamixel motors:
7878

7979
- **`port_name`**: Serial port for communication.
80-
80+
8181
- **`baud_rate`**: Communication baud rate.
82-
82+
8383
- **`error_timeout_sec`**: Timeout for communication errors.
8484

8585
------
@@ -89,9 +89,9 @@ These parameters define how the interface communicates with the Dynamixel motors
8989
These parameters define the hardware setup:
9090

9191
- **`number_of_joints`**: Total number of joints.
92-
92+
9393
- **`number_of_transmissions`**: Number of transmissions.
94-
94+
9595
- **Transmission Matrices**: Define joint-to-transmission mappings.
9696

9797
------
@@ -112,7 +112,7 @@ Joints define the control and state interfaces for robot movement:
112112
```xml
113113
<command_interface name="position">
114114
```
115-
115+
116116
2. **`<state_interface>`**: Monitors joint state data.
117117

118118
```xml

dynamixel_hardware_interface/CHANGELOG.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@ Changelog for package dynamixel_hardware_interface
55
1.0.0 (2024-12-04)
66
------------------
77
* updated the CHANGELOG
8-
* Contributors: Hye-Jong KIM, Sungho Woo
8+
* Contributors: Hye-Jong Kim, Sungho Woo

dynamixel_hardware_interface/include/dynamixel_hardware_interface/dynamixel/dynamixel.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2020 ROBOTIS CO., LTD.
2+
* Copyright 2024 ROBOTIS CO., LTD.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
/* Authors: Hye-Jong KIM, Yong-Ho Na, Sungho Woo*/
16+
/* Authors: Hye-Jong KIM, Sungho Woo */
1717

1818
#ifndef DYNAMIXEL_HARDWARE_INTERFACE__DYNAMIXEL__DYNAMIXEL_HPP_
1919
#define DYNAMIXEL_HARDWARE_INTERFACE__DYNAMIXEL__DYNAMIXEL_HPP_

dynamixel_hardware_interface/include/dynamixel_hardware_interface/dynamixel/dynamixel_info.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2020 ROBOTIS CO., LTD.
2+
* Copyright 2024 ROBOTIS CO., LTD.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
/* Authors: Hye-Jong KIM, Yong-Ho Na */
16+
/* Authors: Hye-Jong KIM */
1717

1818
#ifndef DYNAMIXEL_HARDWARE_INTERFACE__DYNAMIXEL__DYNAMIXEL_INFO_HPP_
1919
#define DYNAMIXEL_HARDWARE_INTERFACE__DYNAMIXEL__DYNAMIXEL_INFO_HPP_

dynamixel_hardware_interface/include/dynamixel_hardware_interface/dynamixel_hardware_interface.hpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2020 ROBOTIS CO., LTD.
2+
* Copyright 2024 ROBOTIS CO., LTD.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
/* Authors: Hye-Jong KIM, Yong-Ho Na, Sungho Woo */
16+
/* Authors: Hye-Jong KIM, Sungho Woo */
1717

1818
#ifndef DYNAMIXEL_HARDWARE_INTERFACE__DYNAMIXEL_HARDWARE_INTERFACE_HPP_
1919
#define DYNAMIXEL_HARDWARE_INTERFACE__DYNAMIXEL_HARDWARE_INTERFACE_HPP_

dynamixel_hardware_interface/package.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,10 @@
55
<description>
66
ROS2 package for dynamixel_hardware_interface
77
</description>
8-
<maintainer email="wsh@robotis.com">hpaper</maintainer>
8+
<maintainer email="pyo@robotis.com">Pyo</maintainer>
99
<license>ROBOTIS</license>
10-
<author email="[email protected]">hjkim</author>
11-
<author email="[email protected]">yhna</author>
12-
<author email="[email protected]">yhna</author>
10+
<author email="[email protected]">Hye-Jong KIM</author>
11+
<author email="[email protected]">Sungho Woo</author>
1312

1413
<buildtool_depend>ament_cmake</buildtool_depend>
1514

dynamixel_hardware_interface/src/dynamixel/dynamixel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2020 ROBOTIS CO., LTD.
2+
* Copyright 2024 ROBOTIS CO., LTD.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
/* Authors: Hye-Jong KIM, Yong-Ho Na, Sungho Woo */
16+
/* Authors: Hye-Jong KIM, Sungho Woo */
1717

1818
#include "dynamixel_hardware_interface/dynamixel/dynamixel.hpp"
1919

dynamixel_hardware_interface/src/dynamixel/dynamixel_info.cpp

Lines changed: 2 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2020 ROBOTIS CO., LTD.
2+
* Copyright 2024 ROBOTIS CO., LTD.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
/* Authors: Hye-Jong KIM, Yong-Ho Na */
16+
/* Authors: Hye-Jong KIM*/
1717

1818
#include "dynamixel_hardware_interface/dynamixel/dynamixel_info.hpp"
1919
#include <string>
@@ -56,7 +56,6 @@ void DynamixelInfo::ReadDxlModelFile(uint8_t id, uint16_t model_num)
5656
{
5757
std::string path = dxl_model_file_dir + "/";
5858

59-
// find model file path
6059
auto it = dxl_model_list_.find(model_num);
6160
if (it != dxl_model_list_.end()) {
6261
path += it->second;
@@ -65,22 +64,17 @@ void DynamixelInfo::ReadDxlModelFile(uint8_t id, uint16_t model_num)
6564
return;
6665
}
6766

68-
// fprintf(stderr, "[DBG] find model file\n");
69-
70-
// file open
7167
std::ifstream open_file(path);
7268
if (open_file.is_open() != 1) {
7369
fprintf(stderr, "[ERROR] CANNOT FIND DXL [%s] MODEL FILE.\n", path.c_str());
7470
exit(-1);
7571
}
76-
// fprintf(stderr, "[DBG] find model file open\n");
7772

7873
DxlInfo temp_dxl_info;
7974
std::string line;
8075

8176
temp_dxl_info.model_num = model_num;
8277

83-
// read type info
8478
while (!open_file.eof() ) {
8579
getline(open_file, line);
8680
if (strcmp(line.c_str(), "[control table]") == 0) {
@@ -104,9 +98,7 @@ void DynamixelInfo::ReadDxlModelFile(uint8_t id, uint16_t model_num)
10498
temp_dxl_info.torque_constant = static_cast<double>(stod(strs.at(1)));
10599
}
106100
}
107-
// fprintf(stderr, "[DBG] read type info\n");
108101

109-
// read control table item
110102
getline(open_file, line);
111103
while (!open_file.eof() ) {
112104
getline(open_file, line);
@@ -117,17 +109,12 @@ void DynamixelInfo::ReadDxlModelFile(uint8_t id, uint16_t model_num)
117109
std::vector<std::string> strs;
118110
boost::split(strs, line, boost::is_any_of("\t"));
119111

120-
// fprintf(stderr, "[DBG] address %s.\n", strs.at(0).c_str());
121-
// fprintf(stderr, "[DBG] size %s.\n", strs.at(1).c_str());
122-
// fprintf(stderr, "[DBG] name %s.\n", strs.at(2).c_str());
123-
124112
ControlItem temp;
125113
temp.address = static_cast<uint16_t>(stoi(strs.at(0)));
126114
temp.size = static_cast<uint8_t>(stoi(strs.at(1)));
127115
temp.item_name = strs.at(2);
128116
temp_dxl_info.item.push_back(temp);
129117
}
130-
// fprintf(stderr, "[DBG] read control item\n");
131118

132119
dxl_info_[id] = temp_dxl_info;
133120
open_file.close();
@@ -206,6 +193,4 @@ double DynamixelInfo::ConvertValueToRadian(uint8_t id, int32_t value)
206193
return 0.0;
207194
}
208195
}
209-
210-
211196
} // namespace dynamixel_hardware_interface

dynamixel_hardware_interface/src/dynamixel_hardware_interface.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*******************************************************************************
2-
* Copyright 2020 ROBOTIS CO., LTD.
2+
* Copyright 2024 ROBOTIS CO., LTD.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -13,7 +13,7 @@
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*******************************************************************************/
16-
/* Authors: Hye-Jong KIM, Yong-Ho Na, Sungho Woo */
16+
/* Authors: Hye-Jong KIM, Sungho Woo */
1717

1818
#include "dynamixel_hardware_interface/dynamixel_hardware_interface.hpp"
1919

dynamixel_interfaces/package.xml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,10 @@
33
<name>dynamixel_interfaces</name>
44
<version>1.0.0</version>
55
<description>ROS2 package for dynamixel_interfaces</description>
6-
<maintainer email="wsh@robotis.com">hpaper</maintainer>
6+
<maintainer email="pyo@robotis.com">Pyo</maintainer>
77
<license>ROBOTIS</license>
8-
<author email="[email protected]">hjkim</author>
9-
<author email="[email protected]">yhna</author>
10-
<author email="[email protected]">yhna</author>
8+
<author email="[email protected]">Hye-Jong KIM</author>
9+
<author email="[email protected]">Sungho Woo</author>
1110

1211
<buildtool_depend>ament_cmake</buildtool_depend>
1312
<buildtool_depend>rosidl_default_generators</buildtool_depend>

0 commit comments

Comments
 (0)