Skip to content

Commit c8abeff

Browse files
author
Jay-Song
committed
update
1 parent 49ed1c9 commit c8abeff

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+3379
-3289
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/robotis_device/devices/dynamixel/H54-100-B210-R-NR.device

LICENSE

100644100755
Lines changed: 26 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,26 @@
1-
Software License Agreement (BSD License)
2-
3-
Copyright (c) 2014, ROBOTIS Inc.
4-
All rights reserved.
5-
6-
Redistribution and use in source and binary forms, with or without
7-
modification, are permitted provided that the following conditions are met:
8-
* Redistributions of source code must retain the above copyright
9-
notice, this list of conditions and the following disclaimer.
10-
* Redistributions in binary form must reproduce the above copyright
11-
notice, this list of conditions and the following disclaimer in the
12-
documentation and/or other materials provided with the distribution.
13-
* Neither the name of ROBOTIS nor the names of its contributors may be
14-
used to endorse or promote products derived from this software
15-
without specific prior written permission.
16-
17-
THIS SOFTWARE IS PROVIDED BY ROBOTIS "AS IS" AND ANY EXPRESS OR IMPLIED
18-
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19-
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20-
IN NO EVENT SHALL ROBOTIS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21-
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22-
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23-
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24-
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25-
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26-
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
1+
Software License Agreement (BSD License)
2+
3+
Copyright (c) 2014, ROBOTIS Inc.
4+
All rights reserved.
5+
6+
Redistribution and use in source and binary forms, with or without
7+
modification, are permitted provided that the following conditions are met:
8+
* Redistributions of source code must retain the above copyright
9+
notice, this list of conditions and the following disclaimer.
10+
* Redistributions in binary form must reproduce the above copyright
11+
notice, this list of conditions and the following disclaimer in the
12+
documentation and/or other materials provided with the distribution.
13+
* Neither the name of ROBOTIS nor the names of its contributors may be
14+
used to endorse or promote products derived from this software
15+
without specific prior written permission.
16+
17+
THIS SOFTWARE IS PROVIDED BY ROBOTIS "AS IS" AND ANY EXPRESS OR IMPLIED
18+
WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
19+
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
20+
IN NO EVENT SHALL ROBOTIS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
21+
SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
22+
PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS;
23+
OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
24+
WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
25+
OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
26+
ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.

README.md

100644100755
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# ROBOTIS-Framework
2-
ROBOTIS Framework GIT REP MAIN
3-
4-
Documents : [ROBOTIS Framework WIKI](https://github.com/ROBOTIS-GIT/ROBOTIS-Documents/wiki/ROBOTIS-ROS-Framework-Documents)
1+
# ROBOTIS-Framework
2+
ROBOTIS Framework GIT REP MAIN
3+
4+
Documents : [ROBOTIS Framework WIKI](https://github.com/ROBOTIS-GIT/ROBOTIS-Documents/wiki/ROBOTIS-ROS-Framework-Documents)

robotis_controller/CHANGELOG.rst

100644100755
Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,23 @@
1-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2-
Changelog for package robotis_controller
3-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4-
5-
0.1.1 (2016-08-18)
6-
-----------
7-
* updated the package information
8-
9-
0.1.0 (2016-08-12)
10-
-----------
11-
* first public release for Kinetic
12-
* modified the package information for release
13-
* develop branch -> master branch
14-
* function name changed : DeviceInit() -> InitDevice()
15-
* Fixed high CPU consumption due to busy waits
16-
* add SensorState
17-
add Singleton template
18-
* XM-430 / CM-740 device file added.
19-
Sensor device added.
20-
* added code to support the gazebo simulator
21-
* added first bulk read failure protection code
22-
* renewal
23-
* Contributors: Alexander Stumpf, Jay Song, Zerom, Pyo
1+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2+
Changelog for package robotis_controller
3+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
5+
0.1.1 (2016-08-18)
6+
-----------
7+
* updated the package information
8+
9+
0.1.0 (2016-08-12)
10+
-----------
11+
* first public release for Kinetic
12+
* modified the package information for release
13+
* develop branch -> master branch
14+
* function name changed : DeviceInit() -> InitDevice()
15+
* Fixed high CPU consumption due to busy waits
16+
* add SensorState
17+
add Singleton template
18+
* XM-430 / CM-740 device file added.
19+
Sensor device added.
20+
* added code to support the gazebo simulator
21+
* added first bulk read failure protection code
22+
* renewal
23+
* Contributors: Alexander Stumpf, Jay Song, Zerom, Pyo

robotis_controller/CMakeLists.txt

100644100755
Lines changed: 66 additions & 66 deletions
Original file line numberDiff line numberDiff line change
@@ -1,66 +1,66 @@
1-
################################################################################
2-
# CMake
3-
################################################################################
4-
cmake_minimum_required(VERSION 2.8.3)
5-
project(robotis_controller)
6-
7-
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
8-
9-
################################################################################
10-
# Packages
11-
################################################################################
12-
find_package(catkin REQUIRED COMPONENTS
13-
roscpp
14-
roslib
15-
sensor_msgs
16-
std_msgs
17-
robotis_controller_msgs
18-
robotis_framework_common
19-
cmake_modules
20-
)
21-
22-
################################################################################
23-
# Declare ROS messages, services and actions
24-
################################################################################
25-
26-
################################################################################
27-
# Declare ROS dynamic reconfigure parameters
28-
################################################################################
29-
30-
################################################################################
31-
# Catkin specific configuration
32-
################################################################################
33-
catkin_package(
34-
INCLUDE_DIRS include
35-
LIBRARIES robotis_controller
36-
CATKIN_DEPENDS roscpp roslib sensor_msgs std_msgs robotis_framework_common
37-
)
38-
39-
################################################################################
40-
# Build
41-
################################################################################
42-
include_directories(
43-
include
44-
${catkin_INCLUDE_DIRS}
45-
)
46-
47-
add_library(robotis_controller src/robotis_controller/robotis_controller.cpp)
48-
add_dependencies(robotis_controller ${catkin_EXPORTED_TARGETS})
49-
target_link_libraries(robotis_controller yaml-cpp ${catkin_LIBRARIES})
50-
51-
################################################################################
52-
# Install
53-
################################################################################
54-
install(TARGETS robotis_controller
55-
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
56-
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
57-
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
58-
)
59-
60-
install(DIRECTORY include/${PROJECT_NAME}/
61-
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
62-
)
63-
64-
################################################################################
65-
# Test
66-
################################################################################
1+
################################################################################
2+
# CMake
3+
################################################################################
4+
cmake_minimum_required(VERSION 2.8.3)
5+
project(robotis_controller)
6+
7+
set(CMAKE_CXX_FLAGS "-std=c++11 ${CMAKE_CXX_FLAGS}")
8+
9+
################################################################################
10+
# Packages
11+
################################################################################
12+
find_package(catkin REQUIRED COMPONENTS
13+
roscpp
14+
roslib
15+
sensor_msgs
16+
std_msgs
17+
robotis_controller_msgs
18+
robotis_framework_common
19+
cmake_modules
20+
)
21+
22+
################################################################################
23+
# Declare ROS messages, services and actions
24+
################################################################################
25+
26+
################################################################################
27+
# Declare ROS dynamic reconfigure parameters
28+
################################################################################
29+
30+
################################################################################
31+
# Catkin specific configuration
32+
################################################################################
33+
catkin_package(
34+
INCLUDE_DIRS include
35+
LIBRARIES robotis_controller
36+
CATKIN_DEPENDS roscpp roslib sensor_msgs std_msgs robotis_framework_common
37+
)
38+
39+
################################################################################
40+
# Build
41+
################################################################################
42+
include_directories(
43+
include
44+
${catkin_INCLUDE_DIRS}
45+
)
46+
47+
add_library(robotis_controller src/robotis_controller/robotis_controller.cpp)
48+
add_dependencies(robotis_controller ${catkin_EXPORTED_TARGETS})
49+
target_link_libraries(robotis_controller yaml-cpp ${catkin_LIBRARIES})
50+
51+
################################################################################
52+
# Install
53+
################################################################################
54+
install(TARGETS robotis_controller
55+
ARCHIVE DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
56+
LIBRARY DESTINATION ${CATKIN_PACKAGE_LIB_DESTINATION}
57+
RUNTIME DESTINATION ${CATKIN_PACKAGE_BIN_DESTINATION}
58+
)
59+
60+
install(DIRECTORY include/${PROJECT_NAME}/
61+
DESTINATION ${CATKIN_PACKAGE_INCLUDE_DESTINATION}
62+
)
63+
64+
################################################################################
65+
# Test
66+
################################################################################

robotis_controller/include/robotis_controller/robotis_controller.h

100644100755
File mode changed.

robotis_controller/package.xml

100644100755
Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
<?xml version="1.0"?>
2-
<package>
3-
<name>robotis_controller</name>
4-
<version>0.1.1</version>
5-
<description>
6-
The main package that controls THORMANG3.
7-
</description>
8-
<license>BSD</license>
9-
<author email="[email protected]">Zerom</author>
10-
<maintainer email="[email protected]">Pyo</maintainer>
11-
<url type="bugtracker">https://github.com/ROBOTIS-GIT/ROBOTIS-Framework/issues</url>
12-
<url type="repository">https://github.com/ROBOTIS-GIT/ROBOTIS-Framework</url>
13-
<url type="website">http://wiki.ros.org/robotis_controller</url>
14-
<buildtool_depend>catkin</buildtool_depend>
15-
<build_depend>roscpp</build_depend>
16-
<build_depend>roslib</build_depend>
17-
<build_depend>std_msgs</build_depend>
18-
<build_depend>sensor_msgs</build_depend>
19-
<build_depend>robotis_controller_msgs</build_depend>
20-
<build_depend>robotis_framework_common</build_depend>
21-
<run_depend>roscpp</run_depend>
22-
<run_depend>roslib</run_depend>
23-
<run_depend>std_msgs</run_depend>
24-
<run_depend>sensor_msgs</run_depend>
25-
<run_depend>robotis_controller_msgs</run_depend>
26-
<run_depend>robotis_framework_common</run_depend>
27-
<export></export>
28-
</package>
1+
<?xml version="1.0"?>
2+
<package>
3+
<name>robotis_controller</name>
4+
<version>0.1.1</version>
5+
<description>
6+
The main package that controls THORMANG3.
7+
</description>
8+
<license>BSD</license>
9+
<author email="[email protected]">Zerom</author>
10+
<maintainer email="[email protected]">Pyo</maintainer>
11+
<url type="bugtracker">https://github.com/ROBOTIS-GIT/ROBOTIS-Framework/issues</url>
12+
<url type="repository">https://github.com/ROBOTIS-GIT/ROBOTIS-Framework</url>
13+
<url type="website">http://wiki.ros.org/robotis_controller</url>
14+
<buildtool_depend>catkin</buildtool_depend>
15+
<build_depend>roscpp</build_depend>
16+
<build_depend>roslib</build_depend>
17+
<build_depend>std_msgs</build_depend>
18+
<build_depend>sensor_msgs</build_depend>
19+
<build_depend>robotis_controller_msgs</build_depend>
20+
<build_depend>robotis_framework_common</build_depend>
21+
<run_depend>roscpp</run_depend>
22+
<run_depend>roslib</run_depend>
23+
<run_depend>std_msgs</run_depend>
24+
<run_depend>sensor_msgs</run_depend>
25+
<run_depend>robotis_controller_msgs</run_depend>
26+
<run_depend>robotis_framework_common</run_depend>
27+
<export></export>
28+
</package>

robotis_controller/src/robotis_controller/robotis_controller.cpp

100644100755
Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1409,6 +1409,7 @@ void RobotisController::removeSensorModule(SensorModule *module)
14091409

14101410
void RobotisController::writeControlTableCallback(const robotis_controller_msgs::WriteControlTable::ConstPtr &msg)
14111411
{
1412+
fprintf(stderr, "[WriteControlTable] led control msg received\n");
14121413
Device *device = NULL;
14131414

14141415
auto dev_it1 = robot_->dxls_.find(msg->joint_name);
@@ -1429,7 +1430,7 @@ void RobotisController::writeControlTableCallback(const robotis_controller_msgs:
14291430
return;
14301431
}
14311432
}
1432-
1433+
fprintf(stderr, " #1 ");
14331434
ControlTableItem *item = NULL;
14341435
auto item_it = device->ctrl_table_.find(msg->start_item_name);
14351436
if(item_it != device->ctrl_table_.end())
@@ -1442,15 +1443,29 @@ void RobotisController::writeControlTableCallback(const robotis_controller_msgs:
14421443
return;
14431444
}
14441445

1446+
fprintf(stderr, " #2 ");
14451447
dynamixel::PortHandler *port = robot_->ports_[device->port_name_];
14461448
dynamixel::PacketHandler *packet_handler = dynamixel::PacketHandler::getPacketHandler(device->protocol_version_);
14471449

14481450
if (item->access_type_ == Read)
14491451
return;
14501452

1453+
queue_mutex_.lock();
1454+
1455+
14511456
direct_sync_write_.push_back(new dynamixel::GroupSyncWrite(port, packet_handler, item->address_, msg->data_length));
14521457

1458+
fprintf(stderr, " #3 \n");
1459+
14531460
direct_sync_write_[direct_sync_write_.size() - 1]->addParam(device->id_, (uint8_t *)(msg->data.data()));
1461+
1462+
fprintf(stderr, "[WriteControlTable] %s -> %s : ", msg->joint_name.c_str(), msg->start_item_name.c_str());
1463+
for (auto &dt : msg->data)
1464+
fprintf(stderr, "%02X ", dt);
1465+
fprintf(stderr, "\n");
1466+
1467+
queue_mutex_.unlock();
1468+
14541469
}
14551470

14561471
void RobotisController::syncWriteItemCallback(const robotis_controller_msgs::SyncWriteItem::ConstPtr &msg)

robotis_device/CHANGELOG.rst

100644100755
Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,24 @@
1-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2-
Changelog for package robotis_device
3-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4-
5-
0.1.1 (2016-08-18)
6-
-----------
7-
* updated the package information
8-
9-
0.1.0 (2016-08-12)
10-
-----------
11-
* first public release for Kinetic
12-
* modified the package information for release
13-
* develop branch -> master branch
14-
* Setting the license to BSD.
15-
* add SensorState
16-
add Singleton template
17-
* XM-430 / CM-740 device file added.
18-
Sensor device added.
19-
* modified.
20-
* variable name changed.
21-
ConvertRadian2Value / ConvertValue2Radian function bug fixed.
22-
* added code to support the gazebo simulator
23-
* renewal
24-
* Contributors: ROBOTIS, ROBOTIS-zerom, pyo
1+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2+
Changelog for package robotis_device
3+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
4+
5+
0.1.1 (2016-08-18)
6+
-----------
7+
* updated the package information
8+
9+
0.1.0 (2016-08-12)
10+
-----------
11+
* first public release for Kinetic
12+
* modified the package information for release
13+
* develop branch -> master branch
14+
* Setting the license to BSD.
15+
* add SensorState
16+
add Singleton template
17+
* XM-430 / CM-740 device file added.
18+
Sensor device added.
19+
* modified.
20+
* variable name changed.
21+
ConvertRadian2Value / ConvertValue2Radian function bug fixed.
22+
* added code to support the gazebo simulator
23+
* renewal
24+
* Contributors: ROBOTIS, ROBOTIS-zerom, pyo

0 commit comments

Comments
 (0)