NKU-MobFly-Robotics / LRAE

LRAE: Large-Region-Aware Safe and Fast Autonomous Exploration of Ground Robots for Uneven Terrains, RA-L, 2024
GNU General Public License v3.0
82 stars 2 forks source link

Error: "map" passed to lookupTransform argument target_frame does not exist. #3

Open Ruanpe opened 3 weeks ago

Ruanpe commented 3 weeks ago

2024-11-04_17-09 Device Environment: Ubuntu20.04, ROS Noetic When I run the following the command, source devel/setup.bash && roslaunch lrae_planner exploration_scene1.launch, the results show in the terminal, as shown in above. Please help me solve it! Thanks.

qingchen-bi commented 3 weeks ago

It is recommended to use the command "rosrun rqt_tf_tree rqt_tf_tree" to check for potential issues with the TF tree.

Ruanpe commented 3 weeks ago

2024-11-04_21-00 Image is TF-tree that miss a connection 'map' to 'base_link'. 2024-11-04_21-01

qingchen-bi commented 3 weeks ago

`

<remap from="/registered_scan" to="/registered_point_cloud"/>
<remap from="/odometry" to="base_pose_ground_truth"/>
<remap from="/point_cloud" to="velodyne_points"/>
<param name="frame_id" value="map"/>
<param name="child_frame_id" value="sensor"/>
<param name="down_voxel_size" value="0.1"/>
<param name="use_sim_time" value="true"/>

` This node causes this problem. The “slam_sim_output” node should subscribe to the topic "base_pose_ground_truth" and "velodyne_points", which are from Gazebo. However, it does not subscribe to the two topics now according to your rqt_graph. Please check and confirm whether the Gazebo has published the two topics. The topic "base_pose_ground_truth" is from a Gazebo plugin and the topic "velodyne_points" is from Lidiar.

Jaqen81 commented 3 weeks ago

Hi Ruanpe, I had this problem too, solved it by running the two commands in order, not reverse first run: source devel/setup.bash && roslaunch fitplane simulation_scene1.launch then: source devel/setup.bash && roslaunch lrae_planner exploration_scene1.launch

hope this will help