dynamixel:sw_prelim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
dynamixel:sw_prelim [2018/06/25 12:56] – typos | dynamixel:sw_prelim [2024/09/23 13:33] (current) – typos | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== Dynamixel Motors: | + | ====== Dynamixel Motors: |
--------------------------------------------- | --------------------------------------------- | ||
- | This page reviews some preliminaries prior to using a laptop/ | + | Here, we walk through set up and example scripts |
+ | **Prerequisite: | ||
+ | ===== Clone Repositories | ||
+ | Clone the [[ https:// | ||
+ | **Note:** Walk-through instructions to set up and clone Git repositories can be found [[git: | ||
+ | ===== Dynamixel Matlab API ===== | ||
+ | Within the repository, a '' | ||
+ | Take some time to explore the class definition and high-level methods available. | ||
+ | **Disclaimer(s)**: | ||
+ | - The '' | ||
+ | - The '' | ||
+ | - Pre-compiled libraries are available only for Linux (32- & 64-bit) and Windows (32- and 64-bit). This API doesn' | ||
+ | - This API will eventually be updated to use ROBOTIS' | ||
- | [[dynamixel: | + | ===== Test Script and Exercise |
+ | Within the **dynamixel** repo, navigate to: code/ | ||
+ | |||
+ | Open and view the following test script which will command a (user-specified) motor ID to a desired position : test_case_command_single_motor.m | ||
+ | |||
+ | **Some notes**: | ||
+ | - Find your port number: A serial-to-USB device (e.g. ROBOTIS U2D2 or a red FTDI breakout board) should be connected to the PC via USB. On Linux, you should find a device file for it within '/ | ||
+ | - **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've 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). | ||
+ | |||
+ | |||
+ | --------- | ||
+ | ;#; | ||
+ | [[dynamixel: | ||
+ | ;#; |
dynamixel/sw_prelim.1529945773.txt.gz · Last modified: 2024/08/20 21:38 (external edit)