I ran the command that 'ros2 action send_goal /visual_slam/save_map isaac_ros_visual_slam_interfaces/action/SaveMap “{map_url: /home/gaozhao/map}” '.In the terminal,it showed’success: true.However,i could not see the expected map in the target directory ‘home/gaozhao’ or in ‘home/gaozhao/map’.Except for this,anything else seems to go well!
HELP!!!What is the problem?
Hi @gaozhao22 - The issue you’re experiencing might be due to a few reasons. Here are some things you can check:
- Permissions: Make sure that the process running the ROS2 command has the necessary permissions to write to the target directory.
- Path: Ensure that the path you’re providing is correct. In your command, you’re providing an absolute path (
/home/gaozhao/map
). If the path is incorrect or does not exist, the map file might not be saved correctly. - ROS2 Action: The
ros2 action send_goal
command sends a goal to a ROS2 action server. Make sure that the action server for/visual_slam/save_map
is running and is implemented correctly. You can check the ROS2 action server’s logs for any errors or warnings. - Map Saving Process: The process of saving the map might take some time, especially if the map is large. Make sure that you’re allowing enough time for the map to be saved before checking the directory.
If you’ve checked all of these and you’re still not seeing the map file, there might be an issue with the way the map is being saved. You might need to debug the map saving process in the /visual_slam/save_map
action server to see why the map file is not being created.
For me, it cannot save the map. I run the command:
ros2 action send_goal /visual_slam/save_map isaac_ros_visual_slam_interfaces/action/SaveMap “{map_url: ./map }”
I have created an empty folder “map” in the current directory so that the map could be saved there.
However, it faces a warning with an error message and then it shutdowns the whole program. the warning error is as follow:
[WARN] [1728289676.590443966] [visual_slam_node]: CUVSLAM_SaveToSlamDb Error 6
terminate called after throwing an instance of ‘rclcpp::exceptions::RCLError’
what(): goal_handle attempted invalid transition from state ABORTED with event ABORT, at ./src/rcl_action/goal_handle.c:95
My I ask what could be the cause of this termination.
it is solved by setting the paramater:
‘enable_localization_n_mapping’: True
This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.