feat: add ROS camera info api.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user