realsense_hwreset.cpp
Go to the documentation of this file.
1 #include <ros/ros.h>
2 #include <librealsense2/rs.hpp>
3 #include <string>
4 #include <unistd.h>
5 
6 
7 /* メイン処理 */
8 int main(int argc, char **argv)
9 {
11 
12  for( auto&& dev : ctx.query_devices() ){
13  // 取得したすべてのデバイスにリセットを発行する
14  dev.hardware_reset();
15  sleep( 1 );// 再接続待ち
16  }
17 }
dev
device_list query_devices() const
int main(int argc, char **argv)
ctx


sciurus17_tools
Author(s): Hiroyuki Nomura , Shota Hirama
autogenerated on Sun Oct 2 2022 02:21:55