feat: add ROS camera info api.

This commit is contained in:
TinyOh
2019-03-26 13:58:20 +08:00
parent de24292cca
commit d36a288336
15 changed files with 200 additions and 42 deletions

View File

@@ -21,6 +21,11 @@ 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);
if (!ok) return 1;