The controller directory is a catkin package, meant to be uploaded on the controller for the Exoskeleton.
Now in Github you must either use a personal access token (PAT) or a SSH key. The SSH key takes a bit more to set up, but it's really convient once it's working. Follow these three steps to set it up:
- Generate an SSH key
- Add it to your github account
- Test the connection
To setup an SSH key, follow [these instructions](
- Create a catkin workspace if you don't have one already
- Navigate to the catkin_ws/src/ directory:
cd catkin_ws/src/
- Clone this repository
- HTTPS:
git clone https://github.com/ualbertabiomed/exo-controller.git
- SSH:
git clone [email protected]:ualbertabiomed/exo-controller.git
- HTTPS:
- Navigate back to your catkin_ws root:
cd ..
- Build the package:
catkin_make
- Navigate to the repo directory:
cd catkin_ws/src/exo-controller
- Create a new branch:
git branch
your_name
- Checkout (switch to) that branch:
git checkout
your_name
Use either a GUI such as the VSCode source control tab or Github desktop
Use git add <files>
, git commit
, and git push
- For more info on these commands type
man <command name>
, e.g.man git add
or search online
After pushing some changes, open a pull request to merge into main and ask someone else to review it. See all pull requests here.
- Install Ubuntu 20.X
- Create uab user with password “uabiomed”
- Name device “uab-piX” where X is whatever number Pi this is
- Do the following in order:
- “sudo apt update”
- “sudo apt upgrade”
- “sudo apt install curl git make” # Get packages to instal docker and our repo
- “curl -sSL https://get.docker.com | sh” # Install docker from website, will take a bit
- “sudo usermod -aG docker uab” # Adds uab to docker group
- Logout and log back in
- “docker run hello-world” # Verify everything worked
- Setup a github SSH key by following the steps listed here, specifically:
- Generating a new SSH key and adding it to the agent
- Adding a new SSH key to your github account
- Testing your SSH connection
- Install Ubuntu 20.X
- Create uab user with password "uabiomed"
- Name device "uab-piX" where X is whatever number Pi this is
- Setup github SSH key (See step 5 above)
- Pull exoskeleton repo
- Install ROS as detailed here
- Install motor dependencies, what these are is tbd...
- Run launch file
Try to follow this style guide
Package Resource Names have strict naming rules as they are often used in auto-generated code. For this reason, a ROS package cannot have special characters other than an underscore, and they must start with an alphabetical character. A valid name has the following characteristics:
- First character is an alpha character ([a-z|A-Z])
- Subsequent characters can be alphanumeric ([0-9|a-z|A-Z]), underscores (_) or a forward slash (/)
- There is at most one forward slash ('/').