Skip to content

Commit 865c03b

Browse files
Merge pull request #393 from clearpathrobotics/development
Production Sync
2 parents 4f99c5c + ca3c4b1 commit 865c03b

File tree

467 files changed

+9746
-1286889
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

467 files changed

+9746
-1286889
lines changed
Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: 'Manual Amplify Preview Closed'
2+
on:
3+
pull_request_target:
4+
types: [closed]
5+
6+
jobs:
7+
delete:
8+
permissions:
9+
id-token: write
10+
if: contains(github.event.pull_request.labels.*.name, 'Preview Environment')
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: configure AWS credentials
14+
id: creds
15+
uses: aws-actions/configure-aws-credentials@v4
16+
with:
17+
aws-region: us-east-2
18+
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
19+
output-credentials: true
20+
- name: cleanup PR preview branch
21+
uses: clearpathrobotics/amplify-preview-actions@sed-replace-all
22+
with:
23+
branch_name: ${{ github.head_ref }}
24+
amplify_command: delete
25+
env:
26+
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
27+
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
28+
AmplifyAppId: ${{ secrets.AMPLIFY_APP_ID }}
29+
AWS_REGION: 'us-east-2'

.github/workflows/preview-rc.yml

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
name: Amplify Branch Management
2+
description: 'Adds(or removes) branch to Amplify with preview enabled'
3+
4+
on:
5+
create:
6+
delete:
7+
8+
jobs:
9+
deploy-to-amplify:
10+
if: github.event_name == 'create' && startsWith(github.event.ref, 'rc/')
11+
runs-on: ubuntu-latest
12+
permissions:
13+
id-token: write
14+
steps:
15+
- name: configure AWS credentials
16+
id: creds
17+
uses: aws-actions/configure-aws-credentials@v4
18+
with:
19+
aws-region: us-east-2
20+
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
21+
output-credentials: true
22+
- name: Enable Amplify Branch With Preview
23+
uses: clearpathrobotics/amplify-preview-actions@sed-replace-all
24+
with:
25+
branch_name: ${{ github.event.ref }}
26+
amplify_command: deploy
27+
env:
28+
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
29+
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
30+
AmplifyAppId: ${{ secrets.AMPLIFY_APP_ID }}
31+
EnablePreview: true
32+
AWS_REGION: 'us-east-2'
33+
34+
remove-from-amplify:
35+
if: github.event_name == 'delete' && (startsWith(github.event.ref, 'rc/') || startsWith(github.head_ref, 'rc/'))
36+
runs-on: ubuntu-latest
37+
permissions:
38+
id-token: write
39+
steps:
40+
- name: Get ref for pull_request
41+
run: |
42+
echo "BRANCH_NAME=${{ github.head_ref }}" >> $GITHUB_ENV
43+
if: github.event_name == 'pull_request_target'
44+
- name: Get ref for delete
45+
run: |
46+
echo "BRANCH_NAME=${{ github.event.ref }}" >> $GITHUB_ENV
47+
if: github.event_name == 'delete'
48+
- name: configure AWS credentials
49+
id: creds
50+
uses: aws-actions/configure-aws-credentials@v4
51+
with:
52+
aws-region: us-east-2
53+
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
54+
output-credentials: true
55+
- name: Remove Branch From Amplify
56+
uses: clearpathrobotics/amplify-preview-actions@sed-replace-all
57+
with:
58+
branch_name: ${{ env.BRANCH_NAME }}
59+
amplify_command: delete
60+
env:
61+
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
62+
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
63+
AmplifyAppId: ${{ secrets.AMPLIFY_APP_ID }}
64+
AWS_REGION: 'us-east-2'

.github/workflows/preview.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Manual Amplify Preview
2+
3+
on:
4+
pull_request:
5+
types: [labeled]
6+
7+
jobs:
8+
deploy:
9+
if: contains(github.event.label.name, 'Preview Environment')
10+
runs-on: ubuntu-latest
11+
continue-on-error: true
12+
permissions:
13+
id-token: write
14+
pull-requests: write
15+
steps:
16+
- name: configure AWS credentials
17+
id: creds
18+
uses: aws-actions/configure-aws-credentials@v4
19+
with:
20+
aws-region: us-east-2
21+
role-to-assume: ${{ secrets.AWS_GITHUB_ACTIONS_ROLE }}
22+
output-credentials: true
23+
- name: deploy PR preview
24+
uses: clearpathrobotics/amplify-preview-actions@sed-replace-all
25+
with:
26+
branch_name: ${{ github.head_ref }}
27+
amplify_command: deploy
28+
env:
29+
AWS_ACCESS_KEY_ID: ${{ steps.creds.outputs.aws-access-key-id }}
30+
AWS_SECRET_ACCESS_KEY: ${{ steps.creds.outputs.aws-secret-access-key }}
31+
AmplifyAppId: ${{ secrets.AMPLIFY_APP_ID }}
32+
AWS_REGION: 'us-east-2'
33+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

README.md

Lines changed: 23 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,12 @@ includeCurrentVersion: false,
210210

211211
## How should I write pages?
212212

213-
1. Refer to [Markdown's guide](https://www.markdownguide.org/basic-syntax/) for syntax
214-
2. Refer to [Docusaurus's guide](https://docusaurus.io/docs/next/markdown-features) for supported Markdown features
215-
3. For advanced users, refer to [Markdown MDX](https://mdxjs.com/) for adding React Components to a Markdown file
216-
4. for advanced users, you may create React pages using _.js_ or _.ts_ file types
213+
1. Refer to [Markdown's guide](https://www.markdownguide.org/basic-syntax/) for syntax.
214+
Comments should be added using a `[//]: <>` start to a line.
215+
HTML commenting—`<!-- -->`—causes issues with the MDX extension in VS Code.
216+
2. Refer to [Docusaurus's guide](https://docusaurus.io/docs/next/markdown-features) for supported Markdown features.
217+
3. For advanced users, refer to [Markdown MDX](https://mdxjs.com/) for adding React Components to a Markdown file.
218+
4. for advanced users, you may create React pages using _.js_ or _.ts_ file types.
217219

218220
## How should I name files?
219221

@@ -251,6 +253,23 @@ This helps Users know where they downloaded the file from later, as the asset is
251253

252254
In an `img/` folder next to the markdown files where it will be used.
253255

256+
6. Files larger than 100 MB
257+
258+
Files added to GitHub must be smaller than 100 MB—_(at time of writing in 2025-04)_.
259+
You will be able to commit a large file locally, but the push to GitHub will fail.
260+
We are storing large files in an Amazon S3 Bucket, rather than the cpr-documentation repository's `/static/assets` directory.
261+
Note that this means large files will need to be added by Clearpath Robotics staff, as we do not provide public access to this S3 Bucket.
262+
263+
To add a file:
264+
265+
* Sign into https://us-east-2.console.aws.amazon.com/s3/ .
266+
* Navigate to the S3 Bucket `cpr-documentation-large-files `.
267+
* Select the `Upload` button, and choose your local file.
268+
* After the file has been uploaded, click on the new object, and copy its `Object URL`.
269+
This is the public URL to access the file you uploaded.
270+
Note that this S3 Bucket is configured so all files' permissions are automatically set to public access.
271+
272+
254273
## How to merge branches into the Production branch?
255274

256275
The website is built and deployed using AWS Amplify.
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
### In Case Of A Collision
2+
3+
Your commissioning and operations teams should develop procedures for how to deal with incidents, like a robot hitting a person.
4+
5+
:::tip Procedure At Clearpath Robotics's Facility
6+
7+
1. Stop the robot by pressing a red Emergency Stop button on the robot or an equipped attachment.
8+
2. Is anyone hurt?
9+
Administer first aid immediately.
10+
Seek medical attention if necessary.
11+
3. Document the incident.
12+
1. Follow workplace injury and accident reporting procedures.
13+
2. Note the time and place.
14+
3. Note which robot was involved.
15+
4. Interview any witnesses.
16+
5. Take photos or make a drawing.
17+
4. Assess the state of the robot.
18+
1. Visually inspect the robot for damage and take photos of any damage found.
19+
2. If there is no visible damage, observe the robot after it returns to service.
20+
3. If any irregularities or differences in its behavior are observed, remove the affected robot from service.
21+
22+
:::
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
<div class="table-container-for-centering">
2+
<div class="centred-table">
3+
| Lighting State | Lighting Pattern |
4+
| :----------------------------------- | :--------------------------------------------------------------------------------------: |
5+
| Emergency Stop | <img src="/img/robot_images/common_images/lighting_images/stopped.gif" width="100"/> |
6+
| Needs Reset _(after Emergency Stop)_ | <img src="/img/robot_images/common_images/lighting_images/needs_reset.gif" width="100"/> |
7+
| Operational _(Driving or Idle)_ | <img src="/img/robot_images/common_images/lighting_images/driving.png" width="100"/> |
8+
</div>
9+
</div>
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
:::safety-danger
2+
3+
**Always perform a risk assessment prior to any custom integrations.**
4+
5+
Custom integrations are outside the scope of the robot's safety assessment, as custom integrations may result in new hazards.
6+
7+
:::
8+
9+
<br />
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
1+
{(props.headingSize == 2) && <h2>Software Integration</h2>}
2+
{(props.headingSize == 3) && <h3>Software Integration</h3>}
3+
14
ROS has a large ecosystem of sensor drivers, some of which include pre-made URDF descriptions and
25
even simulation configurations. Refer to [Sensors supported by ROS](http://wiki.ros.org/Sensors).
36

47
For the best experience, consider purchasing supported accessories from Clearpath Robotics for your
58
robot, which will include simulation, visualization, and driver support.
9+
10+
Refer to the following for more details:
11+
12+
- [Computers](/docs_robots/accessories/computers)
13+
- [Sensors](/docs_robots/accessories/sensors)
14+
- [Manipulators](/docs_robots/accessories/manipulators)
15+
- [Accessories](/docs_robots/accessories/add-ons)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
:::safety-danger
2+
3+
Maintaining robots can be dangerous.
4+
There are hazards from high energy batteries, sharp edges, joints that can shear, and heavy items that can crush.
5+
The robot is intended to be maintained by a technician that is familiar with safe work procedures, and has experience using the required tools.
6+
7+
Technicians must read and understand this manual.
8+
9+
Technicians must review and understand their worksite's Risk Assessment and required procedures.
10+
11+
Contact our [Support Team](#support) if you have any questions.
12+
13+
:::
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
### Charging The Wireless Emergency Stop Transmitter
2+
3+
This transmitter is part of the _Wireless Emergency Stop_ upgrade kit for Husky.
4+
5+
1. Remove the battery from the _Wireless Emergency Stop Transmitter_.
6+
2. Connect the charger's AC cable to an outlet at your worksite.
7+
3. Connect the transmitter's battery to the charger.
8+
9+
<center>
10+
<figure>
11+
<img
12+
src="/img/robot_images/common_images/wireless_emergency_stop_charger_empty.png"
13+
width="350"
14+
/>
15+
<img
16+
src="/img/robot_images/common_images/wireless_emergency_stop_charger_charging.png"
17+
width="350"
18+
/>
19+
<figcaption>Wirelesss Emergency Stop Transmitter's Charger</figcaption>
20+
</figure>
21+
</center>
22+
23+
<center>
24+
<figure>
25+
<img
26+
src="/img/robot_images/common_images/wireless_emergency_stop_transmitter_battery_removal_1.png"
27+
width="350"
28+
/>
29+
<img
30+
src="/img/robot_images/common_images/wireless_emergency_stop_transmitter_battery_removal_2.png"
31+
width="350"
32+
/>
33+
<figcaption>Removing the Wirelesss Emergency Stop Transmitter's Battery</figcaption>
34+
</figure>
35+
</center>
36+
37+
:::info
38+
39+
The robot's spare parts kit included a second battery for the transmitter.
40+
41+
:::

0 commit comments

Comments
 (0)