如何更改Gmapping启动文件中的默认粒子数?
我想问的是,这是更改启动文件中GMapping软件包的粒子数量的正确编码吗?
<launch>
<!-- Arguments -->
<arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/>
<arg name="configuration_basename" default="turtlebot3_lds_2d.lua"/>
<arg name="set_base_frame" default="base_footprint"/>
<arg name="set_odom_frame" default="odom"/>
<arg name="set_map_frame" default="map"/>
<!-- Gmapping -->
<node pkg="gmapping" type="slam_gmapping" name="turtlebot3_slam_gmapping" output="screen">
<param name="base_frame" value="$(arg set_base_frame)"/>
<param name="odom_frame" value="$(arg set_odom_frame)"/>
<param name="map_frame" value="$(arg set_map_frame)"/>
<param name="particles" value="100"/>
<rosparam command="load" file="$(find turtlebot3_slam)/config/gmapping_params.yaml" />
</node>
</launch>
IM添加&lt; param name =“粒子”值=“ 100”/&gt;
如上所述。 谢谢。
I would like to ask is this is the correct coding to change the number of particles of the gmapping package in launch file?
<launch>
<!-- Arguments -->
<arg name="model" default="$(env TURTLEBOT3_MODEL)" doc="model type [burger, waffle, waffle_pi]"/>
<arg name="configuration_basename" default="turtlebot3_lds_2d.lua"/>
<arg name="set_base_frame" default="base_footprint"/>
<arg name="set_odom_frame" default="odom"/>
<arg name="set_map_frame" default="map"/>
<!-- Gmapping -->
<node pkg="gmapping" type="slam_gmapping" name="turtlebot3_slam_gmapping" output="screen">
<param name="base_frame" value="$(arg set_base_frame)"/>
<param name="odom_frame" value="$(arg set_odom_frame)"/>
<param name="map_frame" value="$(arg set_map_frame)"/>
<param name="particles" value="100"/>
<rosparam command="load" file="$(find turtlebot3_slam)/config/gmapping_params.yaml" />
</node>
</launch>
Im adding <param name="particles" value="100"/>
as above.
Thank you.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
是的,这是正确的。您在启动文件中完成的编码是正确的代码。但是,您还可以更改文件中的粒子数=“ $(find turtlebot3_slam)/config/gmapping_params.yaml”
Yes it is correct. The coding that you have done in the launch file is the correct code. But, you also can change the number of particles in the file="$(find turtlebot3_slam)/config/gmapping_params.yaml"