Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
60 changes: 60 additions & 0 deletions .github/workflows/gh-pages.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: [$default-branch]

pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
container:
image: ubuntu:noble
steps:
- name: Setup ROS
uses: ros-tooling/setup-ros@v0.7
with:
required-ros-distributions: jazzy

- name: Checkout
uses: actions/checkout@v4
with:
submodules: 'recursive'

- name: Generate Documentation
run: ./make_docs.sh
shell: bash

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Upload Pages Artifact
uses: actions/upload-pages-artifact@v3
with:
path: 'docs_output/'

- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
32 changes: 32 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
# ros build output
build
install
log

# documentation
cross_reference
docs_build
docs_output

# python env
venv/

# python caches
*.pyc
**/__pycache__/*

# ide
.vscode/*
*.iml
*.swp
.project
.pydevproject
.DS_Store
.idea
# except recommended extensions
!.vscode/extensions.json
!.vscode/settings.json

# potential clang excludes
compile_commands.json
.cache
8 changes: 8 additions & 0 deletions .vscode/extensions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
{
"recommendations": [
"ms-iot.vscode-ros",
"ms-vscode.cpptools-extension-pack",
"ms-python.python",
"llvm-vs-code-extensions.vscode-clangd"
]
}
15 changes: 15 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"ros.distro": "jazzy",
"python.autoComplete.extraPaths": [
"${workspaceFolder}/install/robot_sim_interfaces/lib/python3.12/site-packages",
"/opt/ros/jazzy/lib/python3.12/site-packages"
],
"python.analysis.extraPaths": [
"${workspaceFolder}/install/robot_sim_interfaces/lib/python3.12/site-packages",
"/opt/ros/jazzy/lib/python3.12/site-packages"
],
"flake8.args": [
"--config=${workspaceFolder}/src/robot_sim_gui/test/flake8.ini"
],
"cmake.ignoreCMakeListsMissing": true
}
22 changes: 21 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,21 @@
# WRover_Playground_ROS2
# WRover_Playground_ROS2

## TODO Instructions for setting up virtual machine

## Playground setup instructions

1. Clone the git repository

2. Run `colcon build` in the `WRover_Playground_ROS2` folder

3. Run `source install/setup.bash`. This needs to be run in every new terminal.

4. Launch the playground: `ros2 launch robot_sim_gui gui_launch.py`

To test the playground, run
```
ros2 topic pub /robot/drive_power robot_sim_interfaces/msg/DrivePower "left_power: 0.5
right_power: 0.5"
```

The robot should begin driving forwards.
1 change: 0 additions & 1 deletion WRPlayTemp/build/.built_by

This file was deleted.

Empty file removed WRPlayTemp/build/COLCON_IGNORE
Empty file.
8 changes: 0 additions & 8 deletions WRPlayTemp/build/WRover_Mock/WRover_Mock.egg-info/PKG-INFO

This file was deleted.

18 changes: 0 additions & 18 deletions WRPlayTemp/build/WRover_Mock/WRover_Mock.egg-info/SOURCES.txt

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion WRPlayTemp/build/WRover_Mock/WRover_Mock.egg-info/zip-safe

This file was deleted.

This file was deleted.

72 changes: 0 additions & 72 deletions WRPlayTemp/build/WRover_Mock/build/lib/WRover_Mock/Robot.py

This file was deleted.

1 change: 0 additions & 1 deletion WRPlayTemp/build/WRover_Mock/colcon_build.rc

This file was deleted.

This file was deleted.

63 changes: 0 additions & 63 deletions WRPlayTemp/build/WRover_Mock/colcon_command_prefix_setup_py.sh.env

This file was deleted.

16 changes: 0 additions & 16 deletions WRPlayTemp/build/WRover_Mock/install.log

This file was deleted.

Binary file not shown.
3 changes: 0 additions & 3 deletions WRPlayTemp/build/WRover_Mock/prefix_override/sitecustomize.py

This file was deleted.

Empty file.
Loading