dynamixel:ros
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
dynamixel:ros [2018/09/27 17:10] – created typos | dynamixel:ros [2024/09/23 13:37] (current) – typos | ||
---|---|---|---|
Line 2: | Line 2: | ||
--------------------------------------------- | --------------------------------------------- | ||
- | Here, we walk through set up and example scripts | + | This section refers you to instructions for installing the ROS Dynamixel |
- | **PREREQUISITE:** This assumes | + | **Prerequisite:** This assumes: |
- | ===== Clone Repositories | + | - instructions in [[dynamixel:hardware | hardware setup ]] have been completed. |
- | Clone the 'dynamixel' repository maintained on Georgia Tech.' | + | - you are operating on a Ubuntu release with an appropriate distribution of ROS already installed |
- | **Note:** Walk-through instructions to set up and clone Git repositories can be found [[git:get_started | + | ===== Install Dynamixel Motor Stack ===== |
+ | We will clone a repository forked from Anton Rebgun' | ||
- | ===== Dynamixel Matlab API ===== | + | If you haven't yet created |
- | Within the repository, a 'Dynamixel_IO' | + | <code> |
+ | $ source | ||
+ | $ mkdir -p ~/ | ||
+ | $ cd ~/ | ||
+ | $ catkin build | ||
+ | </ | ||
+ | where ''' | ||
- | Take some time to explore | + | The following is derived from instructions found on the ROS.org page for the [[ http:// |
- | **Disclaimer**: | + | < |
- | - The Dynamixel_IO Matlab class currently only supports Dynamixel motors using 10-bit encoders (ie. AX and RX line of motors). However, a variant (not yet committed to the repository) has been created to support most functions associated with motors using 12-bit encoders (eg. MX line of motors) and is available upon request. | + | cd ~/ |
- | - The Dynamixel_IO class relies on pre-compiled lower-level libraries to communicate with the motors. It presumes the libraries are located in a specific relative path. If you clone the ' | + | git clone https:// |
- | - Pre-compiled libraries are available only for Linux (32- & 64-bit) and Windows (32- and 64-bit). Hence, this API does not currently support use on Mac OSX. Additionally, | + | </ |
- | - This API will soon be updated to use Robotis' | + | |
- | ===== Test Script and Exercise | + | ===== ROS Dynamixel Motor Tutorial |
- | Within the ' | + | Follow this [[ http://wiki.ros.org/dynamixel_controllers/Tutorials | tutorial ]] for the ROS Dynamixel |
- | + | ||
- | Open and view the following test script which will command a motor, specified by the user, to a position (also specified by the user): test_case_command_single_motor.m | + | |
- | + | ||
- | **Some notes**: | + | |
- | - Find your port number: The red FTDI breakout board is connected to the PC via USB. On Linux, you should find a device file for it in '/dev'. Type '' | + | |
- | - Motor ID: You will need to know the ID of the motor you'd like to command using this script. Enter that value in the line, '' | + | |
- | - Command a position: In the line, '' | + | |
- | - Run the script: Once you're done, hit the ' | + | |
- | + | ||
- | **Exercise(s)**: | + | |
- | - You have commanded a single motor to a single angular position. Can you now modify the Matlab script to command the motor to smoothly travel a sinusoidal trajectory (eg. with user-adjustable frequency, amplitude and phase offset) over time? Demonstrate this trajectory (with your choice of frequency, amplitude, phase, etc.) over 5 sine periods. | + | |
- | - Now that you've commanded a time-varying trajectory for a single motor. Command 2 different trajectories for 2 motors! Make sure that both motors are following different sinusoidal trajectories - eg. they both can execute a sinusoidal trajectory over time, but each one should follow a sine wave defined by different parameters (eg. different frequency, amplitude and/or phase offset). | + | |
+ | It will guide you through useful tools to communicate with connected motors. A walk-through is additionally provided to configure a pan-tilt motor arrangement and program a ROS node to operate it. | ||
--------- | --------- | ||
;#; | ;#; | ||
- | [[dynamixel:dynamixel: | + | [[dynamixel: |
;#; | ;#; |
dynamixel/ros.1538082641.txt.gz · Last modified: 2024/08/20 21:38 (external edit)