Skip to content

Commit 34c90ca

Browse files
authored
Merge pull request ROBOTIS-GIT#481 from ROBOTIS-GIT/ros2-devel
Ros2 devel
2 parents 34efea0 + 92f7035 commit 34c90ca

File tree

14 files changed

+468
-32
lines changed

14 files changed

+468
-32
lines changed

.github/workflows/ros-ci.yml

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
name: ros2-ci
2+
3+
# Controls when the action will run. Triggers the workflow on push or pull request
4+
on:
5+
push:
6+
branches: [ ros2, ros2-devel ]
7+
pull_request:
8+
branches: [ ros2, ros2-devel ]
9+
10+
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
11+
jobs:
12+
ros2-ci:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
fail-fast: false
16+
matrix:
17+
ros_distribution:
18+
- dashing
19+
- foxy
20+
# - galactic
21+
- rolling
22+
include:
23+
# Dashing Diademata (May 2019 - May 2021)
24+
- docker_image: ubuntu:bionic
25+
ros_distribution: dashing
26+
ros_version: 2
27+
# Foxy Fitzroy (June 2020 - May 2023)
28+
- docker_image: ubuntu:focal
29+
ros_distribution: foxy
30+
ros_version: 2
31+
# Galactic Geochelone (May 2021)
32+
# - docker_image: ubuntu:focal
33+
# ros_distribution: galactic
34+
# ros_version: 2
35+
# Rolling
36+
- docker_image: ubuntu:focal
37+
ros_distribution: rolling
38+
ros_version: 2
39+
container:
40+
image: ${{ matrix.docker_image }}
41+
steps:
42+
- name: Setup directories
43+
run: mkdir -p ros_ws/src
44+
- name: checkout
45+
uses: actions/checkout@v2
46+
with:
47+
path: ros_ws/src
48+
- name: Setup ROS environment
49+
uses: ros-tooling/[email protected]
50+
with:
51+
required-ros-distributions: ${{ matrix.ros_distribution }}
52+
- name: Build and Test
53+
uses: ros-tooling/[email protected]
54+
with:
55+
package-name: dynamixel_sdk
56+
target-ros2-distro: ${{ matrix.ros_distribution }}
57+
vcs-repo-file-url: ""

.travis.yml

Lines changed: 0 additions & 29 deletions
This file was deleted.

dynamixel_sdk/CHANGELOG.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Changelog for package dynamixel_sdk
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
3.7.40 (2021-04-14)
6+
------------------
7+
* Add ROS 2 basic example
8+
* Bug fix
9+
* Contributors: Will Son
10+
511
3.7.30 (2020-07-13)
612
------------------
713
* ROS 2 Eloquent Elusor supported

dynamixel_sdk/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
33
<package format="3">
44
<name>dynamixel_sdk</name>
5-
<version>3.7.30</version>
5+
<version>3.7.40</version>
66
<description>
77
This package is wrapping version of ROBOTIS Dynamixel SDK for ROS 2. The ROBOTIS Dynamixel SDK, or SDK, is a software development library that provides Dynamixel control functions for packet communication. The API is designed for Dynamixel actuators and Dynamixel-based platforms.
88
</description>

dynamixel_sdk/src/dynamixel_sdk/group_bulk_read.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -232,5 +232,5 @@ bool GroupBulkRead::getError(uint8_t id, uint8_t* error)
232232
// TODO : check protocol version, last_result_, data_list
233233
// if (last_result_ == false || error_list_.find(id) == error_list_.end())
234234

235-
return error[0] = error_list_[id][0];
235+
return (error[0] = error_list_[id][0]);
236236
}

dynamixel_sdk/src/dynamixel_sdk/group_sync_read.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,5 +201,5 @@ bool GroupSyncRead::getError(uint8_t id, uint8_t* error)
201201
// TODO : check protocol version, last_result_, data_list
202202
// if (ph_->getProtocolVersion() == 1.0 || last_result_ == false || error_list_.find(id) == error_list_.end())
203203

204-
return error[0] = error_list_[id][0];
204+
return (error[0] = error_list_[id][0]);
205205
}
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
cmake_minimum_required(VERSION 3.5)
2+
project(dynamixel_sdk_custom_interfaces)
3+
4+
# Default to C99
5+
if(NOT CMAKE_C_STANDARD)
6+
set(CMAKE_C_STANDARD 99)
7+
endif()
8+
9+
# Default to C++14
10+
if(NOT CMAKE_CXX_STANDARD)
11+
set(CMAKE_CXX_STANDARD 14)
12+
endif()
13+
14+
if(CMAKE_COMPILER_IS_GNUCXX OR CMAKE_CXX_COMPILER_ID MATCHES "Clang")
15+
add_compile_options(-Wall -Wextra -Wpedantic)
16+
endif()
17+
18+
# find dependencies
19+
find_package(ament_cmake REQUIRED)
20+
find_package(builtin_interfaces REQUIRED)
21+
find_package(rosidl_default_generators REQUIRED)
22+
23+
set(msg_files
24+
"msg/SetPosition.msg"
25+
)
26+
27+
set(srv_files
28+
"srv/GetPosition.srv"
29+
)
30+
31+
rosidl_generate_interfaces(${PROJECT_NAME}
32+
${msg_files}
33+
${srv_files}
34+
DEPENDENCIES builtin_interfaces
35+
)
36+
37+
ament_export_dependencies(rosidl_default_runtime)
38+
ament_package()
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Messages
2+
uint8 id
3+
int32 position
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
<?xml version="1.0"?>
2+
<?xml-model href="http://download.ros.org/schema/package_format3.xsd" schematypens="http://www.w3.org/2001/XMLSchema"?>
3+
<package format="3">
4+
<name>dynamixel_sdk_custom_interfaces</name>
5+
<version>0.1.0</version>
6+
<description>ROS2 custom interface examples using ROBOTIS DYNAMIXEL SDK</description>
7+
<maintainer email="[email protected]">willson</maintainer>
8+
<license>Apache 2.0</license>
9+
<author email="[email protected]">Will Son</author>
10+
<maintainer email="[email protected]">Will Son</maintainer>
11+
<url type="website">http://wiki.ros.org/dynamixel_sdk</url>
12+
<url type="emanual">http://emanual.robotis.com/docs/en/software/dynamixel/dynamixel_sdk/overview/</url>
13+
<url type="repository">https://github.com/ROBOTIS-GIT/DynamixelSDK</url>
14+
<url type="bugtracker">https://github.com/ROBOTIS-GIT/DynamixelSDK/issues</url>
15+
<buildtool_depend>ament_cmake</buildtool_depend>
16+
<buildtool_depend>rosidl_default_generators</buildtool_depend>
17+
<exec_depend>builtin_interfaces</exec_depend>
18+
<exec_depend>rosidl_default_runtime</exec_depend>
19+
<member_of_group>rosidl_interface_packages</member_of_group>
20+
<export>
21+
<build_type>ament_cmake</build_type>
22+
</export>
23+
</package>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# Constants
2+
# Request
3+
uint8 id
4+
---
5+
# Response
6+
int32 position

0 commit comments

Comments
 (0)