turtlebot + kinect + hokuyo使用rosbag录制数据集

本文详细介绍使用ROS环境下的TurtleBot进行SLAM(Simultaneous Localization and Mapping)的完整流程,包括启动核心进程、发布机器人状态信息、运行键盘遥控、启动SLAM节点并记录数据等关键步骤。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

#操作步骤

$roscore
$roslaunch turtlebot_bringup minimal.launch
$roslaunch turtlebot_teleop keyboard_teleop.launch 
$roslaunch turtlebot_slam dataset_hokuyo_kinect.launch 
$rosrun rviz rviz
$rosbag record -o rosbag_test_2 /tf /odom /camera/rgb/image_color /scan /map
$rosrun map_server map_saver -f map_G6_big

#data_hokuyo_kinect.launch 文件:

<launch>

  <!-- running kinect -->
  <include file="$(find freenect_launch)/launch/examples/freenect-registered-xyzrgb.launch"/>

  <!-- running hokuyo -->
  <node name="hokuyo" pkg="hokuyo_node" type="hokuyo_node" respawn="false" output="screen">

	  <param name="calibrate_time" type="bool" value="false"/> 
	  <param name="port" type="string" value="/dev/ttyACM0"/> 
	  <param name="frame_id"  type="string" value="laser"/>
	  <param name="intensity" type="bool" value="false"/>
  </node>

  <!--static tf transform from base to laser-->
  <node pkg="tf" type="static_transform_publisher" name="base_to_laser" args="0.0 0.0 0.18 0 0.0 0.0 base_footprint laser 100"/> 

  <!-- runing Gmapping -->
  <include file="$(find turtlebot_navigation)/launch/includes/hokuyo_gmapping.launch.xml"/>

  <!--run this in terminal to record rosbag: 
	rosbag record -o rosbag_test_1 /tf /odom /camera/rgb/image_mono /scan /map-->

</launch>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值