Skip to content

Commit cdc4908

Browse files
quic-zhanlinjiaxshi
authored andcommitted
feat: add qrb_camera library
Add qrb_camera library for developer easy to use qcom camera hardware Signed-off-by: Lin Zhanye <[email protected]>
1 parent dd700e9 commit cdc4908

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

49 files changed

+2352
-3703
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# Changelog for package qrb_ros_csi_cam
1+
# Changelog for package qrb_ros_camera
2+
3+
## 2.0.0 (2025-05-30)
4+
5+
- First version for jazzy
6+
- Support build in Docker
7+
- Add qrb_camera library for developer easy to use qcom camera hardware
8+
- Contributors: Zhanye Lin
9+
210

311
## 1.0.0 (2024-07-16)
412

CMakeLists.txt

Lines changed: 0 additions & 65 deletions
This file was deleted.

CONTRIBUTING.md

Lines changed: 25 additions & 115 deletions
Original file line numberDiff line numberDiff line change
@@ -1,79 +1,76 @@
11
# Contributing
22

33
Hi there!
4-
We’re thrilled that you’d like to contribute to this project. We aim to make contributing to Qualcomm QRB ROS is easy, enjoyable, and educational for everyone.
5-
All contributions are welcome, whether they are features, issues, documentation, guides, or anything else. Your help is essential for keeping this project great and for making it better.
4+
We’re thrilled that you’d like to contribute to this project. We aim to make contributing to Qualcomm QRB ROS is easy, enjoyable, and educational for everyone. All contributions are welcome, whether they are features, issues, documentation, guides, or anything else. Your help is essential for keeping this project great and for making it better.
65

7-
- [Code of Conduct](#conduct)
8-
- [Issues and Bugs](#bug)
9-
- [New Feature](#feature)
10-
- [Submission Guidelines](#submission)
11-
- [Contributing Guidelines](#guidelines)
12-
- [Commit Message Format](#commit)
13-
14-
## <a name="conduct"></a> Code of Conduct
15-
Please read and follow our [code of conduct](CODE-OF-CONDUCT.md).
6+
## Contributing Guidelines
7+
Before you submit a pull request to QRB ROS project, please ensure that you have followed these guidelines:
8+
- Code should be well-documented and formatted according to the [Code style and language versions](https://docs.ros.org/en/jazzy/The-ROS2-Project/Contributing/Code-Style-Language-Versions.html).
9+
- All changes should be covered by tests.
10+
- Commits should be well-written and descriptive, with a clear summary of the changes made and any relevant context.
11+
- Pull requests should target the `main` branch and include a clear summary of the changes made.
1612

17-
## <a name="bug"></a> Bug report
13+
## Bug report
1814
If you find a bug in the source code, you can help us by [submitting an issue](../../issues). Even better, you can submit a [Pull Request](../../pulls) with a fix.
1915

20-
## <a name="feature"></a> New feature
21-
You can request a new feature by [Feature Request](../../issues/new?template=feature_request.yaml).
16+
## New feature
17+
You can request a new feature by [submitting an issue](../../issues).
18+
<Update link with template>
2219

2320
If you'd like to implement a new feature, it's always good to be in touch with us before you invest time and effort, since not all features can be supported.
2421

2522
- For a Major Feature, first open an issue and outline your proposal. This will let us coordinate efforts, prevent duplication of work, and help you craft the change so that it's successfully integrated into the project.
26-
- Small Features can be crafted and directly [submitted as a Pull Request](#submit-pr).
23+
- Small Features can be crafted and directly [submitted as a Pull Request](#submitting-a-pull-request).
2724

2825

29-
## <a name="submission"></a> Submission Guidelines
26+
# How to make a code contribution
3027

31-
### Submit an Issue
32-
Before you submit an issue, please check if your problem already exists in [issues](../../issues).
33-
You can submit new issues by selecting from our [Bug Report](../../issues/new?template=bug_report.yaml) and filling out the bug report template.
28+
## Open to community
29+
You can check all the issues that are open for community contributions. Check [issues](../../issues).
3430

35-
### <a name="submit-pr"></a> Submitting a pull request
31+
## Submitting a pull request
3632

37-
#### Create a fork
33+
Please read our [code of conduct](CODE-OF-CONDUCT.md) and [license](LICENSE).
34+
35+
### Create a fork
3836
[Fork](../../fork) the repository to your GitHub organization. This means that you'll have a copy of the repository under your-username/repository-name.
3937

4038
1. Go to the repository page.
4139
2. Click the "Fork" button in the top-right corner of the page.
4240
3. Follow the instructions to create a fork of the repository in your own GitHub account.
4341

44-
#### Clone the forked repository
42+
### Clone the forked repository
4543

4644
```bash
4745
git clone https://github.com/<your-username>/<repository-name>
4846
```
4947
Replace your-username and repository-name with your GitHub username and the name of the forked repository.
5048

51-
#### Create a new branch
49+
### Create a new branch
5250
Create a new branch based on `main` for your changes.
5351

5452
```bash
5553
git checkout -b <my-branch-name> main
5654
```
5755

58-
#### Make your changes
56+
### Make your changes
5957
Make your changes with bug fix or new feature.
6058

61-
#### Commit your changes
59+
### Commit your changes
6260
Use the [DCO](http://developercertificate.org/). You can attest to the DCO by commiting with the **-s** or **--signoff** options or manually adding the "Signed-off-by":
6361
```bash
6462
git add .
6563
git commit -s -m "<type>: <subject>"
6664
```
6765
<add commit template>
6866

69-
#### Push your changes
67+
### Push your changes
7068
```bash
7169
git push -u origin <my-branch-name>
7270
```
7371
The `-u` is shorthand for `--set-upstream`. This will set up the tracking reference so subsequent runs of `git push` or `git pull` can omit the remote and branch.
7472

75-
#### Create pull request
76-
Refer to [Creating a pull request from a fork](https://docs.github.com/en/pull-requests/collaborating-with-pull-requests/proposing-changes-to-your-work-with-pull-requests/creating-a-pull-request-from-a-fork)
73+
### Create pull request
7774
- Go to your forked repository on GitHub.
7875
- You should see a prompt to compare and create a pull request for your recently pushed branch. Click on it.
7976
- If you don’t see the prompt, go to the “Pull requests” tab and click the “New pull request” button.
@@ -94,90 +91,3 @@ Here are a few things you can do that will increase the likelihood of your pull
9491
If you want to make multiple independent changes, please consider submitting them as separate pull requests.
9592
- Write a [good commit message](http://tbaggery.com/2008/04/19/a-note-about-git-commit-messages.html).
9693
- It's a good idea to arrange a discussion with other developers to ensure there is consensus on large features, architecture changes, and other core code changes. PR reviews will go much faster when there are no surprises.
97-
98-
## <a name="guidelines"></a> Contributing Guidelines
99-
Before you submit a pull request to QRB ROS project, please ensure that you have followed these guidelines:
100-
- Code should be well-documented and formatted according to the [Code style and language versions](https://docs.ros.org/en/jazzy/The-ROS2-Project/Contributing/Code-Style-Language-Versions.html).
101-
- All changes should be covered by tests.
102-
- Commits should be well-written and descriptive, with a clear summary of the changes made and any relevant context.
103-
- Pull requests should target the `main` branch and include a clear summary of the changes made.
104-
105-
## <a name="commit"></a> Commit Message Format
106-
> This is inspired and adapted from [Conventional Commits](https://www.conventionalcommits.org/en/v1.0.0/).
107-
108-
A commit message consists of a **header**, **body** and **footer**.
109-
110-
```
111-
<type>[optional scope]: <description>
112-
113-
[optional body]
114-
115-
[optional footer(s)]
116-
```
117-
118-
### Type
119-
120-
Must be one of the following:
121-
122-
| Type | Description |
123-
|--------------|-----------------------------------------------------------------------------------------------------|
124-
| **build** | Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm) |
125-
| **chore** | Other changes that don't modify src or test files |
126-
| **ci** | Changes to our CI configuration files and scripts (examples: Github Actions, SauceLabs) |
127-
| **docs** | Documentation only changes |
128-
| **feat** | A new feature |
129-
| **fix** | A bug fix |
130-
| **perf** | A code change that improves performance |
131-
| **refactor** | A code change that neither fixes a bug nor adds a feature |
132-
| **revert** | Reverts a previous commit |
133-
| **style** | Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)|
134-
| **test** | Adding missing tests or correcting existing tests |
135-
136-
### Scope
137-
A scope may be provided to a commit’s type, to provide additional contextual information and is contained within parenthesis, e.g., feat(parser): add ability to parse arrays.
138-
139-
### Description
140-
141-
The description contains succinct description of the change:
142-
143-
* use the imperative, present tense: "change" not "changed" nor "changes"
144-
* don't capitalize first letter
145-
* no dot (.) at the end
146-
147-
### Body
148-
149-
Just as in the **description**, use the imperative, present tense: "change" not "changed" nor "changes".
150-
The body should include the motivation for the change and contrast this with previous behavior.
151-
152-
### Footer
153-
154-
The footer can contain information about breaking changes and deprecations and is also the place to reference GitHub issues and other PRs that this commit closes or is related to.
155-
For example:
156-
157-
```
158-
BREAKING CHANGE: <breaking change summary>
159-
<BLANK LINE>
160-
<breaking change description + migration instructions>
161-
<BLANK LINE>
162-
<BLANK LINE>
163-
Fixes #<issue number>
164-
```
165-
166-
or
167-
168-
```
169-
DEPRECATED: <what is deprecated>
170-
<BLANK LINE>
171-
<deprecation description + recommended update path>
172-
<BLANK LINE>
173-
<BLANK LINE>
174-
Closes #<pr number>
175-
```
176-
177-
Breaking Change section should start with the phrase `BREAKING CHANGE: ` followed by a *brief* summary of the breaking change, a blank line, and a detailed description of the breaking change that also includes migration instructions.
178-
179-
Similarly, a Deprecation section should start with `DEPRECATED: ` followed by a short description of what is deprecated, a blank line, and a detailed description of the deprecation that also mentions the recommended update path.
180-
181-
### Revert
182-
183-
If the commit reverts a previous commit, it should begin with `revert: `, followed by the header of the reverted commit. In the body it should say: `This reverts commit <hash>.`, where the hash is the SHA of the commit being reverted.

README.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ We provide two ways to use this package.
3636

3737
#### Build
3838
```bash
39-
colcon build
39+
colcon build --packages-up-to qrb_ros_camera
4040
```
4141

4242
#### Run
@@ -54,7 +54,7 @@ ros2 launch qrb_ros_camera qrb_ros_camera_launch.py
5454
<summary>QIRP-SDK</summary>
5555

5656
#### Setup
57-
1. Please follow this [steps](https://qualcomm-qrb-ros.github.io/getting_started/index.html) to setup qirp-sdk env.
57+
1. Please follow this [steps](https://qualcomm-qrb-ros.github.io/main/getting_started/environment_setup.html) to setup qirp-sdk env.
5858
2. Download qrb_ros_imu and dependencies
5959
```bash
6060
mkdir -p <qirp_decompressed_workspace>/qirp-sdk/ros_ws
@@ -73,7 +73,11 @@ ros2 launch qrb_ros_camera qrb_ros_camera_launch.py
7373
cd <qirp_decompressed_workspace>/qirp-sdk/ros_ws/install/qrb_ros_camera
7474
tar -czvf qrb_ros_camera.tar.gz include lib share
7575
scp qrb_ros_camera.tar.gz root@[ip-addr]:/home/
76+
cd <qirp_decompressed_workspace>/qirp-sdk/ros_ws/install/qrb_camera
77+
tar -czvf qrb_camera.tar.gz include lib share
78+
scp qrb_camera.tar.gz root@[ip-addr]:/home/
7679
(ssh) mount -o remount rw /usr
80+
(ssh) tar --no-overwrite-dir --no-same-owner -zxf /home/qrb_camera.tar.gz -C /usr/
7781
(ssh) tar --no-overwrite-dir --no-same-owner -zxf /home/qrb_ros_camera.tar.gz -C /usr/
7882
```
7983

@@ -108,6 +112,7 @@ We would love to have you as a part of the QRB ROS community. Whether you are he
108112
## Authors
109113

110114
* **Tian Ding** - *Initial work* - [dingtian777](https://github.com/dingtian777)
115+
* **Zhanye Lin** - *Second version work* - [zhanlin](https://github.com/quic-zhanlin)
111116

112117
See also the list of [contributors](https://github.com/your/project/contributors) who participated in this project.
113118

0 commit comments

Comments
 (0)