feat: add ROS camera info api.

This commit is contained in:
TinyOh
2019-03-26 13:58:31 +08:00
3 changed files with 35 additions and 48 deletions

View File

@@ -21,10 +21,7 @@ int main(int argc, char *argv[]) {
auto &&api = API::Create(argc, argv);
if (!api) return 1;
auto info = api->GetCameraROSMsgInfoPair();
if (!info->isEmpty())
std::cout << "ROSMsgInfoPair:"<< std::endl << *info << std::endl;
bool ok;
auto &&request = api->SelectStreamRequest(&ok);
@@ -49,5 +46,10 @@ int main(int argc, char *argv[]) {
LOG(INFO) << "Extrinsics right to left: {"
<< api->GetExtrinsics(Stream::RIGHT, Stream::LEFT) << "}";
auto info = api->GetCameraROSMsgInfoPair();
if (!info->isEmpty())
std::cout << "ROSMsgInfoPair:"<< std::endl << *info << std::endl;
return 0;
}