astra pro奥比中光相机获取RGB图像

查了网上好多资料都没有解决,最后在wiki上看到http://wiki.ros.org/libuvc_camera,后来直接使用uvc解决了,frame_rate要改30
但是直接启动rosrun uvc_camera uvc_camera_node会报错,因为里边的默认设置存在问题,可以自己写launch文件,

<launch>
  <group ns="camera">
    <node pkg="libuvc_camera" type="camera_node" name="mycam">
      <!-- Parameters used to find the camera -->
      <param name="vendor" value="0x2bc5"/> 
      <param name="product" value="0x0502"/>
      <param name="serial" value="3"/>
      <!-- If the above parameters aren't unique, choose the first match: -->
      <param name="index" value="0"/>
      <!-- Image size and type -->
      <param name="width" value="1280"/>
      <param name="height" value="720"/>
      <!-- choose whichever uncompressed format the camera supports: -->
      <param name="video_mode" value="mjpeg"/> <!-- or yuyv/nv12/mjpeg -->
      <param name="frame_rate" value="30"/>
      <param name="timestamp_method" value="start"/> <!-- start of frame -->
      <param name="camera_info_url" value="file://$(find usb_cam)/example.yaml"/>
      <param name="auto_white_balance" value="true"/>
    </node>
  </group>
 <node pkg="image_view" type="image_view" name="image_view_test"  output="screen">
    <remap from="image" to="/camera/rgb/image_raw"/>
  </node>
</launch>

这样就可以看淡rgb图像了,里边会增加节点image_raw,在roslaunch astra_launch astra.launch就可以在rqt_image_view看到深度图像和rgb图像了

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值