-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
113 additions
and
0 deletions.
There are no files selected for viewing
This file contains 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,32 @@ | ||
name: Alias reminder | ||
|
||
on: pull_request | ||
|
||
jobs: | ||
alias-reminder: | ||
name: Check for moved files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
with: | ||
ref: ${{github.event.pull_request.head.sha}} | ||
fetch-depth: 0 | ||
- name: Check for moved files | ||
shell: pwsh | ||
id: check_files_moved | ||
outputs: | ||
docs_changed: ${{ steps.check_files_moved.outputs.files_moved }} | ||
run: | | ||
$diff = git diff -M --find-renames=10 --summary main | ||
$SourceDiff = $diff | Where-Object { $_ -match '.md$' } | ||
$HasDiff = $SourceDiff.Length -gt 0 | ||
Write-Host "::set-output name=files_moved::$HasDiff" | ||
- name: Comment on PR with changed files | ||
if: steps.check_file_changed.outputs.files_moved == 'True' | ||
uses: marocchino/[email protected] | ||
with: | ||
recreate: true | ||
message: 'It looks like the following files were renamed. Please ensure you set aliases correctly:\n $(git diff -M --find-renames=10 --summary main | grep md)' | ||
GITHUB_TOKEN: ${{ secrets.PR_TOKEN }} |
This file contains 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,81 @@ | ||
--- | ||
title: "Configure a ur5e Arm" | ||
linkTitle: "ur5e" | ||
weight: 40 | ||
type: "docs" | ||
description: "Configure a ur5e arm." | ||
images: ["/icons/components/arm.svg"] | ||
tags: ["arm", "components"] | ||
--- | ||
|
||
Configure a `ur5e` arm to add a [Universal Robots UR5e](https://www.universal-robots.com/products/ur5-robot) to your robot: | ||
|
||
{{< tabs >}} | ||
{{% tab name="Config Builder" %}} | ||
|
||
Navigate to the **Config** tab of your robot's page in [the Viam app](https://app.viam.com). | ||
Click on the **Components** subtab and click **Create component**. | ||
Select the `arm` type, then select the `ur5e` model. | ||
Enter a name for your arm and click **Create**. | ||
|
||
 | ||
|
||
Edit and fill in the attributes as applicable. | ||
|
||
{{% /tab %}} | ||
{{% tab name="JSON Template" %}} | ||
|
||
```json {class="line-numbers linkable-line-numbers"} | ||
{ | ||
"components": [ | ||
{ | ||
"model": "ur5e", | ||
"name": "<your-arm-name>", | ||
"type": "arm", | ||
"attributes": { | ||
"speed_degs_per_sec": <float>, | ||
"host": "<your-host-address>", | ||
}, | ||
"depends_on": [] | ||
} | ||
] | ||
} | ||
``` | ||
|
||
{{% /tab %}} | ||
{{% tab name="JSON Example" %}} | ||
|
||
```json {class="line-numbers linkable-line-numbers"} | ||
{ | ||
"components": [ | ||
{ | ||
"depends_on": [], | ||
"model": "pi", | ||
"name": "local", | ||
"type": "board", | ||
"attributes": { | ||
} | ||
}, | ||
{ | ||
"name": "my-arm", | ||
"type": "arm", | ||
"model": "ur5e", | ||
"attributes": { | ||
"speed_degs_per_sec": 1, | ||
"host": "10.1.10.82" | ||
}, | ||
"depends_on": [] | ||
} | ||
] | ||
} | ||
``` | ||
|
||
{{% /tab %}} | ||
{{< /tabs >}} | ||
|
||
The following attributes are available for `ur5e` arms: | ||
|
||
| Attribute | Type | Inclusion | Description | | ||
| --------- | ---- | ----------| ----------- | | ||
| `speed_degs_per_sec` | float | **Required** | Desired maximum speed of joint movement in degrees/sec. <br> Range: `[.1, 1]` | | ||
| `host` | string | **Required** | The IP address of the arm's system on your network. Find this when setting up your UR5e. | |