fix(src): fixed problem of printing accuracy
This commit is contained in:
parent
0881a70922
commit
7a23c28965
|
@ -48,8 +48,10 @@ int main(int argc, char *argv[]) {
|
|||
|
||||
auto info = api->GetCameraROSMsgInfoPair();
|
||||
|
||||
if (info && !info->isEmpty())
|
||||
std::cout << "ROSMsgInfoPair:"<< std::endl << *info << std::endl;
|
||||
if (info && !info->isEmpty()) {
|
||||
LOG(INFO) << "ROSMsgInfoPair:";
|
||||
LOG(INFO) << *info;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
|
|
@ -313,13 +313,14 @@ std::ostream &operator<<(std::ostream &os, const Extrinsics &ex) {
|
|||
}
|
||||
|
||||
std::ostream &operator<<(std::ostream &os, const OptionInfo &info) {
|
||||
return os << "min: " << info.min << ", max: " << info.max
|
||||
return os << FULL_PRECISION << "min: " << info.min << ", max: " << info.max
|
||||
<< ", def: " << info.def;
|
||||
}
|
||||
|
||||
std::ostream &operator<<(std::ostream &os, const CameraROSMsgInfo &info) {
|
||||
os << "width: " << info.width << ", height: " << info.height << std::endl
|
||||
<< "distortion_model: " << info.distortion_model;
|
||||
os << FULL_PRECISION << "width: " << info.width << ", height: "
|
||||
<< info.height << std::endl << "distortion_model: "
|
||||
<< info.distortion_model;
|
||||
os << std::endl << "D: ";
|
||||
for (size_t i = 0; i < 5; i++)
|
||||
os << info.D[i] << ",";
|
||||
|
|
Loading…
Reference in New Issue
Block a user