This project welcomes third-party code via GitHub pull requests.
You are welcome to propose and discuss enhancements using project issues.
Branching Policy: The
ros2-masterbranch is considered stable, at all times. If you plan to propose a patch, please commit into theros2-developmentbranch, or its own feature branch.
In addition, please run pr_check.sh under scripts directory. This scripts verify compliance with project's standards:
- Every example / source file must refer to LICENSE
- Every example / source file must include correct copyright notice
- For indentation we are using spaces and not tabs
- Line-endings must be Unix and not DOS style
Most common issues can be automatically resolved by running ./pr_check.sh --fix
Please familirize yourself with the Apache License 2.0 before contributing.
- Make sure you have
gitandcmakeinstalled on your system. On Windows we recommend using Git Extensions for git bash. - Run
git clone https://github.com/IntelRealSense/realsense-ros.gitandcd realsense-ros - To align with latest status of the ros2-development branch, run:
git fetch origin
git checkout ros2-development
git reset --hard origin/ros2-development
git checkout -b name_of_your_contributionto create a dedicated branch- Make your changes to the local repository
- Make sure your local git user is updated, or run
git config --global user.email "email@example.com"andgit config --global user.user "user"to set it up. This is the user & email that will appear in GitHub history. git add -pto select the changes you wish to addgit commit -m "Description of the change"- Make sure you have a GitHub user and fork realsense-ros
git remote add fork https://github.com/username/realsense-ros.gitwith your GitHubusernamegit fetch forkgit push forkto pushname_of_your_contributionbranch to your fork- Go to your fork on GitHub at
https://github.com/username/realsense-ros - Click the
New pull requestbutton - For
basecombo-box selectros2-development, since you want to submit a PR to that branch - For
comparecombo-box selectname_of_your_contributionwith your commit - Review your changes and click
Create pull request - Wait for all automated checks to pass
- The PR will be approved / rejected after review from the team and the community
To continue to new change, goto step 3. To return to your PR (in order to make more changes):
git stashgit checkout name_of_your_contribution- Repeat items 5-8 from the previous list
git push forkThe pull request will be automatically updated