Skip to content

Commit

Permalink
Merge pull request IntelRealSense#39 from otcshare/RAR-283-418-423
Browse files Browse the repository at this point in the history
RAR-283-418-423
  • Loading branch information
reaganlo committed Apr 25, 2016
2 parents f211ba2 + 7328f10 commit 730c3eb
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
4 changes: 4 additions & 0 deletions .github/ISSUE_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@ Please complete Your Configuration detail below.
|:---------------- |:---------------------|:---------------------|
| Operating System | Ubuntu 14.04.4 LTS | ? ? ? |
| Kernel | 4.4.0-040400-generic | ?-?-? |
| Backend | video4linux | ? |
| ROS | indigo | ? |
| ROS RealSense | Latest Release | ?.?.? |
| librealsense | 0.9.1 | ?.?.? |
| R200 Firmware | 1.0.72.06 | ?.?.?.? |

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

Expand Down
1 change: 1 addition & 0 deletions camera/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
|:---------------- |:---------------------|
| Operating System | Ubuntu 14.04.4 LTS |
| Kernel | 4.4.0-040400-generic |
| Backend | video4linux |
| ROS | indigo |
| librealsense | 0.9.1 |
| R200 Firmware | 1.0.72.06 |
Expand Down
8 changes: 4 additions & 4 deletions camera/src/realsense_camera_nodelet.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ namespace realsense_camera
{
for (int i = 0; i < RS_OPTION_COUNT; ++i)
{
option_str o = { (rs_option) i };
CameraOptions o = { (rs_option) i };

if (rs_device_supports_option(rs_device_, o.opt, &rs_error_))
{
Expand All @@ -452,7 +452,7 @@ namespace realsense_camera
if (o.min != o.max)
{
o.value = rs_get_device_option(rs_device_, o.opt, 0);
options.push_back(o);
camera_options_.push_back(o);
}
}
}
Expand Down Expand Up @@ -552,7 +552,7 @@ namespace realsense_camera
std::string get_options_result_str;
std::string opt_name, opt_value;

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

// Iterate through the supported camera options
for (option_str o: options)
for (CameraOptions o: camera_options_)
{
std::string opt_name = rs_option_to_string(o.opt);
bool found = false;
Expand Down
4 changes: 2 additions & 2 deletions camera/src/realsense_camera_nodelet.h
Original file line number Diff line number Diff line change
Expand Up @@ -165,12 +165,12 @@ class RealsenseNodelet: public nodelet::Nodelet
std::map<std::string, std::string> config_;
int stream_step_[STREAM_COUNT];

struct option_str
struct CameraOptions
{
rs_option opt;
double min, max, step, value;
};
std::vector<option_str> options;
std::vector<CameraOptions> camera_options_;
boost::shared_ptr<dynamic_reconfigure::Server<realsense_camera::camera_paramsConfig>> dynamic_reconf_server_;

// Member Functions.
Expand Down

0 comments on commit 730c3eb

Please sign in to comment.