fix: 14.04 complie error
This commit is contained in:
parent
c18a23b059
commit
2d8a66eb47
|
@ -1296,14 +1296,12 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
||||||
if (stream == Stream::RIGHT ||
|
if (stream == Stream::RIGHT ||
|
||||||
stream == Stream::RIGHT_RECTIFIED) {
|
stream == Stream::RIGHT_RECTIFIED) {
|
||||||
if (info_pair->right.distortion_model == "KANNALA_BRANDT") {
|
if (info_pair->right.distortion_model == "KANNALA_BRANDT") {
|
||||||
camera_info->distortion_model =
|
camera_info->distortion_model = "KANNALA_BRANDT";
|
||||||
sensor_msgs::distortion_models::EQUIDISTANT;
|
|
||||||
for (size_t i; i < 4; i++) {
|
for (size_t i; i < 4; i++) {
|
||||||
camera_info->D.push_back(info_pair->right.D[i]);
|
camera_info->D.push_back(info_pair->right.D[i]);
|
||||||
}
|
}
|
||||||
} else if (info_pair->right.distortion_model == "PINHOLE") {
|
} else if (info_pair->right.distortion_model == "PINHOLE") {
|
||||||
camera_info->distortion_model =
|
camera_info->distortion_model = "plumb_bob";
|
||||||
sensor_msgs::distortion_models::PLUMB_BOB;
|
|
||||||
for (size_t i; i < 5; i++) {
|
for (size_t i; i < 5; i++) {
|
||||||
camera_info->D.push_back(info_pair->right.D[i]);
|
camera_info->D.push_back(info_pair->right.D[i]);
|
||||||
}
|
}
|
||||||
|
@ -1323,21 +1321,18 @@ class ROSWrapperNodelet : public nodelet::Nodelet {
|
||||||
bool is_laserscan = false;
|
bool is_laserscan = false;
|
||||||
private_nh_.getParamCached("is_laserscan", is_laserscan);
|
private_nh_.getParamCached("is_laserscan", is_laserscan);
|
||||||
if (!is_laserscan) {
|
if (!is_laserscan) {
|
||||||
camera_info->distortion_model =
|
camera_info->distortion_model = "KANNALA_BRANDT";
|
||||||
sensor_msgs::distortion_models::EQUIDISTANT;
|
|
||||||
for (size_t i; i < 4; i++) {
|
for (size_t i; i < 4; i++) {
|
||||||
camera_info->D.push_back(info_pair->left.D[i]);
|
camera_info->D.push_back(info_pair->left.D[i]);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
camera_info->distortion_model =
|
camera_info->distortion_model = "plumb_bob";
|
||||||
sensor_msgs::distortion_models::PLUMB_BOB;
|
|
||||||
for (size_t i; i < 4; i++) {
|
for (size_t i; i < 4; i++) {
|
||||||
camera_info->D.push_back(0.0);
|
camera_info->D.push_back(0.0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else if (info_pair->left.distortion_model == "PINHOLE") {
|
} else if (info_pair->left.distortion_model == "PINHOLE") {
|
||||||
camera_info->distortion_model =
|
camera_info->distortion_model = "plumb_bob";
|
||||||
sensor_msgs::distortion_models::PLUMB_BOB;
|
|
||||||
for (size_t i; i < 5; i++) {
|
for (size_t i; i < 5; i++) {
|
||||||
camera_info->D.push_back(info_pair->left.D[i]);
|
camera_info->D.push_back(info_pair->left.D[i]);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user