fix(discut): fix discut boost & add ros disparity_type_
This commit is contained in:
@@ -56,6 +56,11 @@
|
||||
|
||||
<arg name="request_index" default="$(arg index_s2_2)" />
|
||||
|
||||
<!-- disparity computing method type -->
|
||||
<arg name="sgbm" default="0" />
|
||||
<arg name="bm" default="1" />
|
||||
<arg name="disparity_computing_method" default="$(arg sgbm)" />
|
||||
|
||||
<arg name="enable_left_rect" default="false" />
|
||||
<arg name="enable_right_rect" default="false" />
|
||||
<arg name="enable_disparity" default="false" />
|
||||
@@ -242,6 +247,8 @@
|
||||
|
||||
<param name="gravity" value="$(arg gravity)" />
|
||||
|
||||
<param name="disparity_computing_method" value="$(arg disparity_computing_method)" />
|
||||
|
||||
<!-- stream toggles -->
|
||||
|
||||
<param name="enable_left_rect" value="$(arg enable_left_rect)" />
|
||||
|
||||
@@ -226,6 +226,12 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
||||
gravity_ = 9.8;
|
||||
private_nh_.getParam("gravity", gravity_);
|
||||
|
||||
int tmp_disparity_type_ = 0;
|
||||
disparity_type_ = DisparityComputingMethod::BM;
|
||||
private_nh_.getParam("disparity_computing_method", tmp_disparity_type_);
|
||||
disparity_type_ = (DisparityComputingMethod)tmp_disparity_type_;
|
||||
api_->SetDisparityComputingMethodType(disparity_type_);
|
||||
|
||||
// device options of standard210a
|
||||
if (model_ == Model::STANDARD210A) {
|
||||
option_names_ = {
|
||||
@@ -1317,6 +1323,8 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
||||
|
||||
double gravity_;
|
||||
|
||||
// disparity type
|
||||
DisparityComputingMethod disparity_type_;
|
||||
// api
|
||||
|
||||
std::shared_ptr<API> api_;
|
||||
|
||||
Reference in New Issue
Block a user