-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Improved ROS API * Update ROS_API.md * clean up * Add topic short description * Create table * ros api * delete [] from type * details type * add DEV_GUIDE * Update README.md * double space bar and time between spawn * Add comment * update api
- Loading branch information
1 parent
be82e5e
commit 8b25f50
Showing
9 changed files
with
264 additions
and
228 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,46 @@ | ||
# Developer guide | ||
|
||
Description of useful tools and good practices to maintain code readability and reliability. | ||
|
||
## Tools | ||
|
||
### 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 pre-commit hooks | ||
pre-commit run -a | ||
|
||
# update revision | ||
pre-commit autoupdate | ||
``` | ||
|
||
After initialization [pre-commit configuration](.pre-commit-config.yaml) will applied on every commit. | ||
|
||
### Run tests | ||
|
||
```bash | ||
# Run tests | ||
colcon test | ||
|
||
# Show results | ||
colcon test-result --verbose | ||
``` | ||
|
||
> [!NOTE] | ||
> Command `colcon test` does not build the code. Remember to build your code after changes. | ||
### Industrial CI | ||
|
||
Download industrial package from [github](https://github.com/ros-industrial/industrial_ci/) build it and run following command to run industrial_ci tests locally. | ||
|
||
```bash | ||
ros2 run industrial_ci rerun_ci src/ ROS_DISTRO=humble | ||
``` |
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.