1

我正在检查hector_localization堆栈,它提供了机器人或平台的完整 6DOF 姿势。它使用各种传感器源,这些传感器源使用扩展卡尔曼滤波器进行融合。惯性测量单元 (IMU) 的加速度和角速率用作主要测量值,也支持气压传感器。我检查了这是这个的发射

<?xml version="1.0"?>
<launch>
  <node pkg="hector_pose_estimation" type="pose_estimation" name="hector_pose_estimation" />
  <node pkg="rviz" type="rviz" name="hector_pose_estimation_rviz" args="-d $(find hector_pose_estimation)/rviz_cfg/hector_pose_estimation.rviz" />
</launch>

但是找不到热设置hector_pose_estimation节点和启动文件以获取IMU和压力(气压计)数据作为输入的方式。有什么帮助吗?

谢谢

4

1 回答 1

2

您必须将 hector 期望的输入主题重新映射到您的系统正在输出的主题。检查此页面以获取主题和参数的完整列表。最后,您的启动文件应该看起来像这样。请注意,您需要输入自己的主题名称。

<?xml version="1.0"?>
<launch>
  <node pkg="hector_pose_estimation" type="pose_estimation" name="hector_pose_estimation">
    <remap from="raw_imu" to="/your_imu_topic" />
    <remap from="pressure_height" to="/your_barometric_topic" />
  </node>
  <node pkg="rviz" type="rviz" name="hector_pose_estimation_rviz" args="-d $(find hector_pose_estimation)/rviz_cfg/hector_pose_estimation.rviz" />
</launch>
于 2021-09-29T17:01:56.987 回答