ros kinetic hokuyo雷达驱动源码安装urg_node

http://blog.csdn.net/hongliang2009/article/details/73302986

双目视觉/激光是机器人导航的关键部位,手头激光是hokuyou据说上万大洋,不过查看urg_node好像没有kinetic的版本。根据前人大神经验,实践记录如下。-2017.06.15 乐

安装urg_node

参考网址
参考网址
参考网址
1、安装driver_base

cd ~/catkin_ws/src/
mkdir hokuyo
cd hokuyo
git clone https://github.com/ros-drivers/driver_common.git
cd ~/catkin_ws/src/hokuyo/driver_common/driver_base/
mkdir build
cd build
cmake ..
make
sudo make install

cd ~/catkin_ws/src/hokuyo/driver_common/driver_common/
mkdir build
cd build
cmake ..
make
sudo make install

cd ~/catkin_ws/src/hokuyo/driver_common/timestamp_tools/
mkdir build
cd build
cmake ..
make
sudo make install/catkin_ws/src/hokuyo
git clone https://github.com/ros-perception/laser_proc.git
git clone https://github.com/ros-drivers/urg_c.git
//git clone https://github.com/ros-drivers/hokuyo_node.git

//cd ~/catkin_ws/src/hokuyo/laser_proc
//mkdir build
//cd build
//cmake ..
//make
//sudo make install
catkin_make  -DCATKIN_WHITELIST_PACKAGES= "urg_node"

cd ~/catkin_ws/src/hokuyo
git clone https://github.com/ros-drivers/urg_node
cd urg_node
mkdir build
cd build
rosdep install --from-paths ~/catkin_ws/src --ignore-src
catkin_make  -DCATKIN_WHITELIST_PACKAGES= "urg_node"

cd ~/catkin_ws
catkin_make install

2、启动roscore
roscore
3、启动激光(激光IP192.168.0.10)
rosrun urg_node urg_node _ip_address:=192.168.0.10
4、查看距离
` rostopic list
rostopic echo /scan
5、rviz查看
rosrun rviz rviz
add添加laser topic ,如果提示fix frame无坐标错误,将启动的坐标位置fixed frame 的map手动改为laser。
打完收工!

hokuyou激光

  • 0
    点赞
  • 5
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值