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 }
ros.h
main
int main(int argc, char **argv)
Definition: realsense_hwreset.cpp:8
dev
dev
ctx
ctx
rs2::context
rs.hpp


sciurus17_tools
Author(s): Hiroyuki Nomura , Shota Hirama
autogenerated on Fri Aug 2 2024 08:37:48