Skip to content

Commit 3ce3582

Browse files
committed
Merge pull request #34 from mdhorn/release-1.0.4
Release 1.0.4
2 parents 877998b + e8b9399 commit 3ce3582

File tree

11 files changed

+170
-40
lines changed

11 files changed

+170
-40
lines changed

.github/CONTRIBUTING.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
# Contributing to ROS RealSense™ Project
2+
3+
Third-party patches and contributions are welcome. We do require
4+
you read and agree to the Contribution License Agreement below.
5+
6+
## Contribution License Agreement
7+
8+
The Intel® RealSense™ ROS Project is developed and distributed under
9+
a BSD license as noted in [camera/licenses/License.txt](../camera/licenses/License.txt).
10+
11+
By making a contribution to this project, I certify that:
12+
13+
(a) The contribution was created in whole or in part by me and I
14+
have the right to submit it under the open source license
15+
indicated in the file; or
16+
17+
(b) The contribution is based upon previous work that, to the best
18+
of my knowledge, is covered under an appropriate open source
19+
license and I have the right under that license to submit that
20+
work with modifications, whether created in whole or in part
21+
by me, under the same open source license (unless I am
22+
permitted to submit under a different license), as indicated
23+
in the file; or
24+
25+
(c) The contribution was provided directly to me by some other
26+
person who certified (a), (b) or (c) and I have not modified
27+
it.
28+
29+
(d) I understand and agree that this project and the contribution
30+
are public and that a record of the contribution (including all
31+
personal information I submit with it, including my sign-off) is
32+
maintained indefinitely and may be redistributed consistent with
33+
this project or the open source license(s) involved.
34+
35+
# Contribution Prerequisites
36+
37+
* Create a [GitHub account](https://github.com/join) if you do not already have one.
38+
* Search the existing [GitHub Issues](../../../issues)
39+
to see if your contribution is already documented.
40+
* Submit a [new GitHub Issue](../../../issues/new) if one does not exist.
41+
* Complete the provided template with your system configuration.
42+
* For Bug fixes, include directions on how to reproduce the problem.
43+
* For new functionality or features, please describe in detail the requirements.
44+
* [Create a Fork](../../../fork) of the repository on GitHub for your contribution.
45+
46+
# Submitting Changes
47+
48+
* Create a Topic branch for your work.
49+
* Base the topic branch on the ROS development branch `<ros release>-devel`.
50+
* Ensure changes follow the [ROS coding Style Guide](http://wiki.ros.org/StyleGuide)
51+
* Each commit needs to be functional/compile by itself.
52+
* Follow [Git Commit Guidelines](https://git-scm.com/book/ch5-2.html#Commit-Guidelines)
53+
regarding commit formatting.
54+
* Check for unnecessary whitespace with `git diff --check` before committing.
55+
* Rebase commits to squash where appropriate.
56+
* Verify the Test cases found in the package 'test' directory are passing.
57+
* Changes with new functionality should include new test cases.
58+
* Submit a [Pull Request](../../../compare) to the repository.
59+
* Ensure that it is flagged as "Able to merge", if not you may need to rebase your Fork.
60+
* List the Issues fixed by the Pull Request.
61+
62+
### Monitor Your Pull Request
63+
64+
* The maintainers attempt to review all Pull Requests in a timely manner; worse case
65+
is once per week.
66+
* If maintainers request changes or additional information for your Pull Request, the
67+
expectation is the submitter replies within two weeks.
68+
* Pull Requests may be closed without being merged if there is no submitter response after 3+ weeks.
69+
70+
# Contribution Resources
71+
72+
* [Create a GitHub account](https://github.com/join)
73+
* [GitHub Pull Request documentation](https://help.github.com/articles/using-pull-requests)
74+
* [ROS coding Style Guide](http://wiki.ros.org/StyleGuide)
75+
* [Git Commit Guidelines](https://git-scm.com/book/ch5-2.html#Commit-Guidelines)

.github/ISSUE_TEMPLATE.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ Please complete Your Configuration detail below.
55
|:---------------- |:---------------------|:---------------------|
66
| Operating System | Ubuntu 14.04.4 LTS | ? ? ? |
77
| Kernel | 4.4.0-040400-generic | ?-?-? |
8+
| Backend | video4linux | ? |
89
| ROS | indigo | ? |
10+
| ROS RealSense | Latest Release | ?.?.? |
911
| librealsense | 0.9.1 | ?.?.? |
1012
| R200 Firmware | 1.0.72.06 | ?.?.?.? |
1113

@@ -17,7 +19,9 @@ Please complete Your Configuration detail below.
1719
|:---------------- |:------------ |
1820
| Operating System | `grep DISTRIB_DESCRIPTION /etc/*elease*` |
1921
| Kernel | `uname -r` |
22+
| Backend | `ls /sys/class | grep video4linux` |
2023
| ROS | `rosversion -d` |
24+
| ROS RealSense | `rosversion realsense_camera` |
2125
| librealsense | `cat <path to librealsense>/librealsense/readme.md | grep release-image | awk -F- '{print $3}'` |
2226
| R200 Firmware | View the ROS log from running nodelet **OR** `<path to librealsense>/librealsense/bin/cpp-enumerate-devices | grep -i firmware` |
2327

.github/PULL_REQUEST_TEMPLATE.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
**Please ensure the above *guidelines for contributing* are met.**
2+
13
Fixes Issue: #
24

35
Changes proposed in this pull request:

README.md

Lines changed: 29 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,33 @@ www.intel.com/realsense
55

66
www.ros.org
77

8-
98
Refer to the README.md file within each package for more details.
9+
10+
# Contributing to the Project
11+
12+
The Intel&reg; RealSense&trade; ROS Project is developed and distributed under
13+
a BSD license as noted in [camera/licenses/License.txt](camera/licenses/License.txt).
14+
15+
By making a contribution to this project, I certify that:
16+
17+
(a) The contribution was created in whole or in part by me and I
18+
have the right to submit it under the open source license
19+
indicated in the file; or
20+
21+
(b) The contribution is based upon previous work that, to the best
22+
of my knowledge, is covered under an appropriate open source
23+
license and I have the right under that license to submit that
24+
work with modifications, whether created in whole or in part
25+
by me, under the same open source license (unless I am
26+
permitted to submit under a different license), as indicated
27+
in the file; or
28+
29+
(c) The contribution was provided directly to me by some other
30+
person who certified (a), (b) or (c) and I have not modified
31+
it.
32+
33+
(d) I understand and agree that this project and the contribution
34+
are public and that a record of the contribution (including all
35+
personal information I submit with it, including my sign-off) is
36+
maintained indefinitely and may be redistributed consistent with
37+
this project or the open source license(s) involved.

camera/CHANGELOG.rst

Lines changed: 12 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -2,48 +2,34 @@
22
Changelog for package realsense_camera
33
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
44

5+
1.0.4 (2016-04-25)
6+
------------------
7+
* Updated RGBD Launch File for Manual Mode (#25)
8+
* Updated Documentation with Backend and ROS RealSense details (#16)
9+
* Modified variable names to match ROS standards
10+
* Contributors: Mark D Horn, Reagan Lopez
11+
512
1.0.3 (2016-04-11)
613
------------------
7-
* Updated code to enable multi-camera functionality
8-
Added code to generate frame_id's based on user entered values.
9-
Updated rgbd_launch files to reflect the changes.
10-
Updated README to reflect the changes.
11-
This fixes Issue #7.
14+
* Updated code to enable multi-camera functionality (#7)
1215
* Updated README and Issue Template with BKC
1316
* Contributors: Reagan Lopez
1417

1518
1.0.2 (2016-03-28)
1619
------------------
17-
* Added functionality to access camera using Serial No:
18-
This fixes Issue #18.
19-
Added code to handle various use cases for input serial number such as
20-
--Exit with error if no serial number is specified and multiple cameras are detected.
21-
--Exit with error if no camera is detected that matches the input serial number.
22-
--Prints all the detected cameras.
23-
Updated launch files with a placeholder for serial number.
24-
Updated rgbd_launch test code to remove hardcoded topic names.
25-
* Modified all parameters to lowercase for consistency
26-
This fixes Issue #13.
20+
* Added functionality to access camera using Serial No (#18)
21+
* Modified all parameters to lowercase for consistency (#13)
2722
* Removed support for R200_DISPARITY_MULTIPLIER camera option
28-
* Added missing install targets
29-
This fixes Pull Request #2.
30-
This fixes Issue #17.
23+
* Added missing install targets (#2 #17)
3124
* Contributors: Reagan Lopez, Rajvi Jingar
3225

3326
1.0.1 (2016-03-17)
3427
------------------
35-
* Convert command line args to ROS params
36-
This also fixes Issue #9 for publish_tf and enable_tf
37-
Updated README to indicate changes in R200_DISPARITY_MULTIPLIER.
28+
* Convert command line args to ROS params (#9)
3829
* New Feature to dynamically enable/disable depth stream
39-
Note: Enable/disable of depth stream also enables/disables infrared streams.
4030
* Update camera_info msgs
41-
Add identity matrix for rotation
42-
Add depth to color translation to projection matrix
4331
* Add rgbd_launch as run dependency.
4432
* Add missing Change Log history file
45-
This is a required file as part of the ROS (bloom) release process
46-
which was missed from our initial release.
4733
* Contributors: Mark D Horn, Matthew Hansen, Reagan Lopez, Rajvi Jingar
4834

4935
1.0.0 (2016-02-29)

camera/README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
|:---------------- |:---------------------|
55
| Operating System | Ubuntu 14.04.4 LTS |
66
| Kernel | 4.4.0-040400-generic |
7+
| Backend | video4linux |
78
| ROS | indigo |
89
| librealsense | 0.9.1 |
910
| R200 Firmware | 1.0.72.06 |
@@ -267,12 +268,17 @@ Refer to the function definitions in [realsense_camera_nodelet.h](src/realsense_
267268
* Depth stream: Y16
268269
* Infrared stream: Y8
269270

271+
* Generating a Depth Registered Point Cloud is very memory intensive.
272+
The topic /camera/depth_registered/points, generated by launch file
273+
"realsense_r200_rgbd.launch", works best at 30 fps using 640x480 resolution
274+
on a system with 16GB of RAM.
275+
270276
* The camera does not provide hardware based depth registration/projector data.
271277
Hence the launch file "realsense_r200_rgbd.launch" will not generate data for the following topics:
272278
* /camera/depth_registered/hw_registered/image_rect_raw
273-
* /camera/depth_registered/points
274279
* /camera/depth_registered/hw_registered/image_rect
275280
* /camera/depth_registered/image
276281
* /camera/depth/disparity
277282
* /camera/depth_registered/disparity
283+
278284
* The performance benchmark for multiple cameras launched at the same time has not been defined yet.

camera/launch/includes/realsense_r200_nodelet.launch.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@
1515
<!-- RealSense -->
1616
<arg name="serial_no" default="" />
1717
<arg name="mode" default="" />
18+
<arg name="color_width" default="" />
19+
<arg name="color_height" default="" />
20+
<arg name="depth_width" default="" />
21+
<arg name="depth_height" default="" />
22+
<arg name="depth_fps" default="" />
23+
<arg name="color_fps" default="" />
1824
<arg name="ir2" default="ir2" />
1925

2026
<!-- "enable_depth_ir" will take the value of "enable_ir" only if "enable_ir" is true.
@@ -35,6 +41,12 @@
3541
<param name="enable_color" type="bool" value="$(arg rgb_processing)" />
3642
<param name="enable_pointcloud" type="bool" value="$(arg enable_pointcloud)" />
3743
<param name="enable_tf" type="bool" value="$(arg publish_tf)" />
44+
<param name="depth_width" type="int" value="$(arg depth_width)" />
45+
<param name="depth_height" type="int" value="$(arg depth_height)" />
46+
<param name="color_width" type="int" value="$(arg color_width)" />
47+
<param name="color_height" type="int" value="$(arg color_height)" />
48+
<param name="depth_fps" type="int" value="$(arg depth_fps)" />
49+
<param name="color_fps" type="int" value="$(arg color_fps)" />
3850
<param name="base_frame_id" type="str" value="$(arg camera)_link" />
3951
<param name="depth_frame_id" type="str" value="$(arg camera)_$(arg depth)_frame" />
4052
<param name="color_frame_id" type="str" value="$(arg camera)_$(arg rgb)_frame" />

camera/launch/realsense_r200_rgbd.launch

Lines changed: 22 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,22 @@
88
<!-- "serial_no" should be the unique identifier to connect to a device. -->
99
<arg name="serial_no" default="" />
1010

11+
<!-- Set depth to match the default rectify size. -->
12+
<arg name="mode" default="manual" />
13+
<arg name="color_width" default="640" />
14+
<arg name="color_height" default="480" />
15+
<arg name="depth_width" default="480" />
16+
<arg name="depth_height" default="360" />
17+
<arg name="depth_fps" default="30" />
18+
<arg name="color_fps" default="30" />
19+
1120
<!-- Use OpenNI's factory-calibrated depth->RGB registration? -->
1221
<arg name="depth_registration" default="false" />
1322

1423
<!-- Arguments for remapping all device namespaces -->
1524
<arg name="depth" default="depth" />
16-
<arg name="rgb" default="rgb" />
17-
<arg name="ir" default="ir" />
25+
<arg name="rgb" default="rgb" />
26+
<arg name="ir" default="ir" />
1827
<arg name="depth_registered" default="depth_registered" />
1928
<arg name="projector" default="projector" />
2029

@@ -28,19 +37,20 @@
2837
<arg name="depth_registered_processing" default="true"/>
2938
<arg name="disparity_processing" default="true"/>
3039
<arg name="disparity_registered_processing" default="true"/>
31-
<arg name="hw_registered_processing" default="true" />
40+
<arg name="hw_registered_processing" default="false" />
3241
<arg name="sw_registered_processing" default="true" />
3342

3443
<!-- Disable respawn topics by default -->
3544
<arg name="respawn" default="false" />
3645

3746
<!-- Worker threads for the nodelet manager -->
3847
<arg name="num_worker_threads" default="4" />
39-
48+
4049
<!-- Push down all topics/nodelets into "camera" namespace -->
4150
<group ns="$(arg camera)">
4251

4352
<!-- Start nodelet manager in provided namespace -->
53+
4454
<arg name="manager" value="$(arg camera)_nodelet_manager" />
4555
<arg name="debug" default="false" /> <!-- Run manager in GDB? -->
4656
<include file="$(find rgbd_launch)/launch/includes/manager.launch.xml">
@@ -57,11 +67,18 @@
5767
<arg name="manager" value="$(arg manager)" />
5868
<arg name="publish_tf" value="$(arg publish_tf)" />
5969
<arg name="depth" value="$(arg depth)" />
60-
<arg name="rgb" value="$(arg rgb)" />
70+
<arg name="rgb" value="$(arg rgb)" />
6171
<arg name="ir" value="$(arg ir)" />
6272
<arg name="depth_processing" value="$(arg depth_processing)" />
6373
<arg name="rgb_processing" value="$(arg rgb_processing)" />
6474
<arg name="ir_processing" value="$(arg ir_processing)" />
75+
<arg name="mode" value="$(arg mode)" />
76+
<arg name="color_width" value="$(arg color_width)" />
77+
<arg name="color_height" value="$(arg color_height)" />
78+
<arg name="depth_width" value="$(arg depth_width)" />
79+
<arg name="depth_height" value="$(arg depth_height)" />
80+
<arg name="depth_fps" value="$(arg depth_fps)" />
81+
<arg name="color_fps" value="$(arg color_fps)" />
6582

6683
</include>
6784

camera/package.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0"?>
22
<package>
33
<name>realsense_camera</name>
4-
<version>1.0.3</version>
4+
<version>1.0.4</version>
55
<description>RealSense Camera package allowing access to Intel 3D cameras and advanced modules</description>
66

77
<maintainer email="[email protected]">Rajvi Jingar</maintainer>

camera/src/realsense_camera_nodelet.cpp

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -443,7 +443,7 @@ namespace realsense_camera
443443
{
444444
for (int i = 0; i < RS_OPTION_COUNT; ++i)
445445
{
446-
option_str o = { (rs_option) i };
446+
CameraOptions o = { (rs_option) i };
447447

448448
if (rs_device_supports_option(rs_device_, o.opt, &rs_error_))
449449
{
@@ -452,7 +452,7 @@ namespace realsense_camera
452452
if (o.min != o.max)
453453
{
454454
o.value = rs_get_device_option(rs_device_, o.opt, 0);
455-
options.push_back(o);
455+
camera_options_.push_back(o);
456456
}
457457
}
458458
}
@@ -552,7 +552,7 @@ namespace realsense_camera
552552
std::string get_options_result_str;
553553
std::string opt_name, opt_value;
554554

555-
for (option_str o: options)
555+
for (CameraOptions o: camera_options_)
556556
{
557557
opt_name = rs_option_to_string(o.opt);
558558
std::transform(opt_name.begin(), opt_name.end(), opt_name.begin(), ::tolower);
@@ -603,7 +603,7 @@ namespace realsense_camera
603603
std::vector<camera_paramsConfig::AbstractParamDescriptionConstPtr> param_desc = params_config.__getParamDescriptions__();
604604

605605
// Iterate through the supported camera options
606-
for (option_str o: options)
606+
for (CameraOptions o: camera_options_)
607607
{
608608
std::string opt_name = rs_option_to_string(o.opt);
609609
bool found = false;

0 commit comments

Comments
 (0)