Chinaunix首页 | 论坛 | 博客
  • 博客访问: 9187457
  • 博文数量: 1728
  • 博客积分: 12961
  • 博客等级: 上将
  • 技术积分: 19870
  • 用 户 组: 普通用户
  • 注册时间: 2009-01-09 11:25
个人简介

偷得浮生半桶水(半日闲), 好记性不如抄下来(烂笔头). 信息爆炸的时代, 学习是一项持续的工作.

文章分类

全部博文(1728)

文章存档

2024年(4)

2023年(26)

2022年(112)

2021年(217)

2020年(157)

2019年(192)

2018年(81)

2017年(78)

2016年(70)

2015年(52)

2014年(40)

2013年(51)

2012年(85)

2011年(45)

2010年(231)

2009年(287)

分类: 其他平台

2019-08-02 18:01:47

根据

主要有 两个 ROS pack



apt 没有 melodic 的版本, 所以尝试从源码安装一下。
根据
的 readme.md

1. sudo apt install ros-$ROS_DISTRO-rgbd-launch ros-$ROS_DISTRO-libuvc ros-$ROS_DISTRO-libuvc-camera ros-$ROS_DISTRO-libuvc-ros
2. ss; git clone
3. 编译 astra      sm --pkg=astra_camera
4. 
roscd astra_camera;  ./scripts/create_udev_rules

使用:
roslaunch astra_camera astra.launch
或者  roslaunch astra_camera stereo_s.launch

对应的topic

点击(此处)折叠或打开

  1. */image_raw: depth/rgb/ir raw images
  2. */image_rect_raw: images rectified by intrinsic/extrinsic parameters
  3. */camera_info: camera intrinsic/extrinsic parameters
  4. /camera/depth/points: point cloud without color information
  5. /camera/depth_registered/points: xyzrgb point cloud
常用的service

点击(此处)折叠或打开

  1. /camera/get_device_type: return a string containing astra device type
  2. /camera/get_ir_exposure: get exposure value of ir camera
  3. /camera/get_ir_gain: get gain value of ir camera
  4. /camera/get_serial: get serial number
  5. /camera/get_uvc_exposure: get exposure value of rgb camera
  6. /camera/get_uvc_gain: get gain value of rgb camera
  7. /camera/get_uvc_white_balance: get white balance value of rgb camera
  8. /camera/reset_ir_exposure: reset ir exposure to default value
  9. /camera/reset_ir_gain: reset ir gain to default value
  10. /camera/set_ir_exposure: set ir exposure to specific value
  11. /camera/set_ir_gain: set ir gain to specific value
  12. /camera/set_laser: turn on (true) or turn off (false) laser
  13. /camera/set_uvc_exposure: set uvc exposure. (set 0 indicating auto mode)
  14. /camera/set_uvc_gain: set uvc gain
  15. /camera/set_uvc_white_balance: set uvc white balance (set 0 indicating auto mode)
  16. /camera/set_ir_flood: turn on (true) or turn off (false) ir flood
范例

点击(此处)折叠或打开

  1. rosservice call /camera/get_ir_exposure 获取 IR 曝光
  2. rosservice call /camera/set_ir_exposure "{exposure: 50}"

  3. //开关 laser
  4. rosservice call /camera/set_laser "{enable: true}" #turn on
  5. rosservice call /camera/set_laser "{enable: false}" #turn off




阅读(7656) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~