存在這樣的問題是文件丟失,因此,直接新建一個該文件,然後寫入即可。
- 打開一個新的終端,輸入:
sudo gedit /opt/ros/indigo/share/hector_pose_estimation/hector_pose_estimation_nodelets.xml
-在打開的文件中輸入以下內容:
<library path="lib/libhector_pose_estimation_nodelet">
<class name="hector_pose_estimation/PoseEstimationNodelet" type="hector_pose_estimation::PoseEstimationNodelet" base_class_type="nodelet::Nodelet">
<description>
This nodelet initializes the pose estimation filter with a generic system model driven by IMU measurements only.
</description>
</class>
</library>
保存文件即可。