Add initReslution
This commit is contained in:
@@ -96,6 +96,7 @@ add_compile_options(-std=c++11)
|
||||
|
||||
include_directories(
|
||||
${catkin_INCLUDE_DIRS}
|
||||
${SDK_DIR}/src
|
||||
)
|
||||
|
||||
set(LINK_LIBS
|
||||
|
||||
@@ -531,9 +531,8 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
||||
}
|
||||
}
|
||||
|
||||
api_ = API::Create(device);
|
||||
api_->SetStreamRequest(
|
||||
Resolution::RES_1280x400, Format::BGR888, FrameRate::RATE_20_FPS);
|
||||
api_ = API::Create(device, Resolution::RES_1280x400);
|
||||
api_->SetStreamRequest(Format::BGR888, FrameRate::RATE_20_FPS);
|
||||
}
|
||||
|
||||
sensor_msgs::CameraInfoPtr getCameraInfo(const Stream &stream) {
|
||||
|
||||
Reference in New Issue
Block a user