Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

LoadMapAdnLocalize crashes #155

Open
sandeepdutta opened this issue Mar 27, 2024 · 3 comments
Open

LoadMapAdnLocalize crashes #155

sandeepdutta opened this issue Mar 27, 2024 · 3 comments

Comments

@sandeepdutta
Copy link

sandeepdutta commented Mar 27, 2024

Hello,

The service call to LoadMapAndLocalize sometimes crashes. Below is the error messages we
get , restarting and reissuing the service call will work. Doing a quick google search, it looks
like it could be caused by a "race" condition.

Please let me know if we can provide any more information
Best Regards
Sandeep
[component_container_mt-2] [WARN] [1711573751.678238729] [visual_slam_node]: CallbackLoadMapAndLocalizeAccepted()
[component_container_mt-2] [INFO] [1711573751.678336682] [visual_slam_node]: cuvslam: LoadMapAndLocalize /workspaces/isaac_ros-dev/src/jeeves_navigation/maps/visual_map [0.000000, 0.000000, 0.000000]
[component_container_mt-2] terminate called after throwing an instance of 'std::runtime_error'
[component_container_mt-2] what(): Taking data from action server but nothing is ready
[ERROR] [component_container_mt-2]: process has died [pid 92842, exit code -6, cmd '/opt/ros/humble/lib/rclcpp_components/component_container_mt --ros-args -r __node:=vslam_container'].

Command used to load map:
ros2 action send_goal /visual_slam/load_map_and_localize isaac_ros_visual_slam_interfaces/action/LoadMapAndLocalize "{map_url: /workspaces/isaac_ros-dev/src/jeeves_navigation/maps/visual_map, localize_near_point: { x: 0, y: 0,z: 0}}"

@harborhoffer
Copy link

Also periodically getting the same error when loading a map

[component_container_mt-1] [WARN] [1712759840.096308135] [visual_slam_node]: CallbackLoadMapAndLocalizeAccepted()
[component_container_mt-1] [INFO] [1712759840.096384712] [visual_slam_node]: cuvslam: LoadMapAndLocalize /workspaces/isaac_ros-dev/vslam-maps/office-4-9 [0.000000, 0.000000, 0.000000]
[component_container_mt-1] terminate called after throwing an instance of 'std::runtime_error'
[component_container_mt-1]   what():  Taking data from action server but nothing is ready
[ERROR] [component_container_mt-1]: process has died [pid 14815, exit code -6, cmd '/opt/ros/humble/lib/rclcpp_components/component_container_mt --ros-args -r __node:=shared_nvblox_container'].

@sandeepdutta
Copy link
Author

Seems to happen with high system load. I have nav2, nvblox , vslam & controller software running on an
ORIN Agx (32GB) and it happens very frequently.
Any workaround suggestion will be greatly appreciated.
Sandeep

@JCastel358
Copy link

Hello, Im having same issue that it crashes but different error:

between current and previous frame [22.254848] is above threshold [20.000000]
[component_container-1] [WARN] [1715217219.969362526] [visual_slam_node]: CallbackLoadMapAndLocalizeAccepted()
[component_container-1] [INFO] [1715217219.969472736] [visual_slam_node]: cuvslam: LoadMapAndLocalize /workspaces/isaac_ros-dev/maps/lab_map_vslam/data.mbd [0.000000, 0.000000, 0.000000]
[component_container-1] [WARN] [1715217219.975820676] [visual_slam_node]: Localization failed. Status=4
[component_container-1] [WARN] [1715217219.977607977] [visual_slam_node]: CUVSLAM_LocalizeInExistDb Error 4
[component_container-1] terminate called after throwing an instance of 'rclcpp::exceptions::RCLError'
[component_container-1]   what():  goal_handle attempted invalid transition from state ABORTED with event ABORT, at /tmp/binarydeb/ros-humble-rcl-action-5.3.6/src/rcl_action/goal_handle.c:95
[ERROR] [component_container-1]: process has died [pid 24714, exit code -6, cmd '/opt/ros/humble/lib/rclcpp_components/component_container --ros-args -r __node:=visual_slam_launch_container -r __ns:=/'].

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants