Skip to content

Commit

Permalink
Test github action
Browse files Browse the repository at this point in the history
  • Loading branch information
npentrel committed Sep 16, 2023
1 parent 3599254 commit 86bfc77
Show file tree
Hide file tree
Showing 2 changed files with 113 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/moved-files.yml
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 }}
81 changes: 81 additions & 0 deletions docs/components/arm/ur5e.md
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**.

![Web UI configuration panel for an arm of model ur5e in the Viam app, with Attributes & Depends On drop-downs and the option to add a frame.](/components/arm/ur5e-ui-config.png)

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. |

0 comments on commit 86bfc77

Please sign in to comment.