-
Notifications
You must be signed in to change notification settings - Fork 63
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
1 parent
db0ad25
commit 482a944
Showing
6 changed files
with
261 additions
and
160 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
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,59 @@ | ||
# Developer info and tools | ||
|
||
## USB-A connection | ||
|
||
You can connect to the robot hardware on your own computer. To establish a connection, connect your computer to the robot using a USB-A cable. Then build the code locally and specify via the serial_port argument which processor should be used to establish the connection. | ||
|
||
```bash | ||
ros2 launch rosbot_bringup bringup.launch.py serial_port:=/dev/ttyUSB0 | ||
``` | ||
|
||
The hardware checks the connection via USB-A only during initialization and when btn1 or btn2 is pressed, so while executing the above command, hold down the reset button together with bnt1/bnt2 and release the reset button. After establishing a connection, you can release bnt1/bnt2. | ||
|
||
## pre-commit | ||
|
||
[pre-commit configuration](.pre-commit-config.yaml) prepares plenty of tests helping for developing and contributing. Usage: | ||
|
||
```bash | ||
# install pre-commit | ||
pip install pre-commit | ||
|
||
# initialize pre-commit workspace | ||
pre-commit install | ||
|
||
# manually run tests | ||
pre-commit run -a | ||
``` | ||
|
||
After initialization [pre-commit configuration](.pre-commit-config.yaml) will applied on every commit. | ||
|
||
## Industrial CI | ||
|
||
```bash | ||
colcon test | ||
``` | ||
|
||
> [!NOTE] | ||
> Command `colcon test` does not build the code. Remember to build your code after changes. | ||
If tests finish with errors print logs: | ||
|
||
``` bash | ||
colcon test-result --verbose | ||
``` | ||
|
||
|
||
### Testing `.github/workflows/industrial_ci.yaml` Locally | ||
|
||
At fist install [act](https://github.com/nektos/act): | ||
|
||
```bash | ||
cd / | ||
curl -s https://raw.githubusercontent.com/nektos/act/master/install.sh | sudo bash | ||
``` | ||
|
||
And test the workflow with: | ||
|
||
```bash | ||
act -W .github/workflows/industrial_ci.yaml | ||
``` |
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
Oops, something went wrong.