-
Notifications
You must be signed in to change notification settings - Fork 183
SDK windows update and API manual update #1825
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
GyuH13
wants to merge
16
commits into
master
Choose a base branch
from
feature-sdk-window-update
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 12 commits
Commits
Show all changes
16 commits
Select commit
Hold shift + click to select a range
8e514b2
window update librarysetup and basic read write tutorial
GyuH13 63ca708
h3 to h2
GyuH13 9a9a151
add sync and bulk tutorial window version
GyuH13 072c50a
devide window and linux in tutorial
GyuH13 047453d
add run icon image
GyuH13 0760a35
update python window tutorial
GyuH13 1ebb89b
refactorying construction of library setup
GyuH13 d6ac31f
unify form in navigation
GyuH13 08cf6c5
reflect ai review
GyuH13 a58270b
fix head title size error
GyuH13 32575ac
make basic frame
GyuH13 9129d6a
sample code re numbering
GyuH13 f461596
renumbering api reference
GyuH13 82d0996
Merge branch 'feature-sdk-window-update' of https://github.com/ROBOTI…
GyuH13 68f912c
api manual update
GyuH13 cd8dac4
api update
GyuH13 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
114 changes: 114 additions & 0 deletions
114
_includes/en/software/dynamixel_sdk/library_setup/c_linux.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,114 @@ | ||
{::options parse_block_html="true" /} | ||
|
||
<div class="main-header"> | ||
<h1 id="library-setup-c-linux">Library Setup <C Linux></h1> | ||
</div> | ||
<style> | ||
.main-header h1::before { | ||
content: none !important; | ||
} | ||
</style> | ||
|
||
This tutorial is written assuming you are using the latest version of Ubuntu. Commands may not be the same for alternative distributions of Linux. | ||
|
||
# [Install requirements](#install-requirements) | ||
|
||
- The DYNAMIXEL SDK requires GNU gcc ver. 5.4.0 20160609 or higher | ||
- To check the version of your gcc compiler | ||
``` bash | ||
$ gcc -v | ||
``` | ||
|
||
- Download the requirements | ||
``` bash | ||
$ sudo apt-get install gcc | ||
$ sudo apt-get install build-essential | ||
$ sudo apt-get install gcc-multilib g++-multilib # For cross-compiling | ||
``` | ||
|
||
# [Build the SDK](#build-the-SDK) | ||
- Check your system architecture | ||
``` bash | ||
$ uname -m | ||
``` | ||
|
||
- Enter the appropriate build folder depending on your system and build the SDK | ||
``` bash | ||
$ cd DynamixelSDK/c/build/linux64 # for 64-bit systems | ||
$ sudo make install | ||
``` | ||
- make sure to enter the correct folder according to your system architecture. | ||
- `linux64` for 64-bit systems | ||
- `linux32` for 32-bit systems | ||
- `linux_sbc` for ARM-based SBCs like Raspberry Pi | ||
|
||
- If the build completes successfully, you should see the .so file generated inside the build folder. | ||
``` bash | ||
$ ls | ||
libdxl_x86_c.so Makefile | ||
``` | ||
|
||
- Grant permission to access the port | ||
``` bash | ||
$ sudo chmod 666 /dev/ttyUSB0 | ||
``` | ||
|
||
<br> | ||
- Common `make` commands for building the SDK | ||
``` bash | ||
$ make # Compile the source code and generate binaries | ||
$ make install # Install the library files to the system | ||
$ make clean # Remove all build files and reset the build environment | ||
$ make uninstall # Remove files installed by 'make install' from the system | ||
$ make reinstall # Reinstall by cleaning, rebuilding, and installing again | ||
``` | ||
{: .notice--success} | ||
|
||
# [Building and Running the Sample Code](#building-and-running-the-sample-code) | ||
|
||
The DYNAMIXEL SDK example code for C uses a .so (Linux Shared Object) library built in C. | ||
The previous instructions walk you through building the latest library files in `[DynamixelSDK folder]/c/build/[linuxXX]/libdxl_xYY_c.so` built by its own source code. | ||
|
||
* Go to the Makefile's directory using `cd`: | ||
|
||
``` bash | ||
$ cd [DynamixelSDK folder]/c/example/protocol1.0/read_write/linux32 | ||
``` | ||
|
||
OR | ||
|
||
``` bash | ||
$ cd [DynamixelSDK folder]/c/example/protocol1.0/read_write/linux64 | ||
``` | ||
|
||
 | ||
|
||
* Build the executable file: | ||
|
||
``` bash | ||
$ make | ||
``` | ||
|
||
 | ||
|
||
* If there is an error, `$ make clean` then `$ make` again. | ||
|
||
* To delete the executable file, `$ make clean`. | ||
|
||
 | ||
|
||
* Access the port you will be using to communicate with DYNAMIXEL: | ||
|
||
``` bash | ||
$ sudo chmod a+rw /dev/ttyUSB0 | ||
``` | ||
|
||
 | ||
|
||
* Run the executable file: | ||
|
||
``` bash | ||
$ ./read_write | ||
``` | ||
|
||
 |
File renamed without changes.
28 changes: 12 additions & 16 deletions
28
...amixel_sdk/library_setup/c_macos_dummy.md → ...amixel_sdk/library_setup/c_macos_dummy.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
15 changes: 1 addition & 14 deletions
15
.../dynamixel_sdk/library_setup/cpp_linux.md → .../dynamixel_sdk/library_setup/cpp_linux.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.