Hi community,
For those developers who are trying to use DYNAMIXEL on ROS, you might have lost where to start.
Here are the very simple C++ / Python examples of reading and writing Position of DYNAMIXEL by creating a simple node.
Please refer to below video for more details.
And you can also check out the source code for each language.
C++ (read_write_node.cpp)
// Copyright 2020 ROBOTIS CO., LTD.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
/*******************************************************************************
* This example is written for DYNAMIXEL X(excluding XL-320) and MX(2.0) series with U2D2.
* For other series, please refer to the product eManual and modify the Control Table addresses and other definitions.
* To test this example, please follow the commands below.
*
* Open terminal #1
This file has been truncated. show original
Python (read_write_node.py)
#!/usr/bin/env python
#*******************************************************************************
# Copyright 2021 ROBOTIS CO., LTD.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#*******************************************************************************
#*******************************************************************************
# This example is written for DYNAMIXEL X(excluding XL-320) and MX(2.0) series with U2D2.
This file has been truncated. show original
2 Likes
Andrew
January 29, 2021, 11:59pm
2
Hello willson,
Thanks for joining the page and sharing this video! I think it’s a great explanation of how to set up and get started running DYNAMIXELs with ROS.
Just as a heads up, I’ve moved this thread to our Software & Programming category and I’ll include a shortcut to this thread in the original location.
I might have missed it if you mentioned in the video, but which version of ROS are you using here?
1 Like
@Jonathon ,
Thanks for transferring the thread to a proper one.
This is a general guideline for all ROS1 version and available for all current maintained versions : Kinetic, Melodic, and Noetic.
ROS2 example will be coming up soon
1 Like