From 7e5b3ee4199b4078803ab5c20cbf94dbe3001001 Mon Sep 17 00:00:00 2001 From: Kalman Date: Tue, 20 Nov 2018 19:31:54 +0800 Subject: [PATCH] Modify option_names --- .../launch/mynteye.launch | 64 +++++++++---------- .../src/wrapper_nodelet.cc | 12 ++-- 2 files changed, 34 insertions(+), 42 deletions(-) diff --git a/wrappers/ros/src/mynt_eye_ros_wrapper/launch/mynteye.launch b/wrappers/ros/src/mynt_eye_ros_wrapper/launch/mynteye.launch index e477f62..39df4df 100644 --- a/wrappers/ros/src/mynt_eye_ros_wrapper/launch/mynteye.launch +++ b/wrappers/ros/src/mynt_eye_ros_wrapper/launch/mynteye.launch @@ -44,49 +44,45 @@ - - - - - - - - - - - - - - - - - + - + - + - + - + - + - - - + + + - - - + + + + + + + + + + + + + + + @@ -136,18 +132,16 @@ - - - - - - - + + + + + diff --git a/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc b/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc index 6037d19..e35a6e8 100644 --- a/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc +++ b/wrappers/ros/src/mynt_eye_ros_wrapper/src/wrapper_nodelet.cc @@ -147,18 +147,16 @@ class ROSWrapperNodelet : public nodelet::Nodelet { // device options std::map option_names = { - {Option::GAIN, "gain"}, {Option::BRIGHTNESS, "brightness"}, - {Option::CONTRAST, "contrast"}, - {Option::FRAME_RATE, "frame_rate"}, - {Option::IMU_FREQUENCY, "imu_frequency"}, {Option::EXPOSURE_MODE, "exposure_mode"}, {Option::MAX_GAIN, "max_gain"}, {Option::MAX_EXPOSURE_TIME, "max_exposure_time"}, {Option::DESIRED_BRIGHTNESS, "desired_brightness"}, - {Option::IR_CONTROL, "ir_control"}, - {Option::HDR_MODE, "hdr_mode"}, - }; + {Option::MIN_EXPOSURE_TIME, "min_exposure_time"}, + {Option::EXPOSURE_MODE, "accel_range"}, + {Option::GYROSCOPE_RANGE, "gyro_range"}, + {Option::ACCELEROMETER_LOW_PASS_FILTER, "accel_low_filter"}, + {Option::GYROSCOPE_LOW_PASS_FILTER, "gyro_low_filter"}}; for (auto &&it = option_names.begin(); it != option_names.end(); ++it) { if (!api_->Supports(it->first)) continue;