Runtime Error with Processed Parking-Lot Bag – iSAM2::update Fails After First Pose Prior
Hi, thank you for releasing this excellent SLAM framework!
I successfully compiled the SLIDE_SLAM code from this repository using the instructions provided. However, I encountered an error when running the demo with the processed version of the parking-lot bag (from the datasets linked in the README).
The node crashes when it reaches the following line:
graph.cpp isam->update(fgraph, fvalues);
At that point, the following error is printed: ERROR: Factor graph optimization is done when adding the first pose prior, this may cause problems!!! After this message, the process terminates.
My questions: Is this behavior expected with the processed dataset? Could this be due to how the initial pose prior is handled? Are there any dataset-specific parameters that need to be set for the parking-lot demo?
I'd really appreciate any guidance or suggestions you can provide. Thank you again for your great work on this project! Best regards
Hi @Abl4-auto,
Thanks for your interest. The message you quoted is a ROS_WARN_STREAM, not a crash or assertion. It is emitted inside the if (pose_counter == 0) branch of SemanticFactorGraphWrapper::addSLOAMObservation in backend/sloam/src/factorgraph/graphWrapper.cpp:
if (pose_counter == 0) {
setPriors(curr_pose, robotID);
ROS_WARN_STREAM(
"EROOR: Factor graph optimization is done when adding the first "
"pose prior, this may cause problems!!!");
}
Execution continues normally through the landmark-factor loops and the subsequent solve(). This line fires once per robot at its first keyframe on every dataset we ship (forest, parking lot, KITTI, RGBD) and is not indicative of failure. The ERROR: prefix and the EROOR typo are misleading log wording. The cleanup is done in this commit: https://github.com/KumarRobotics/SLIDE_SLAM/commit/eda25a5a66d1a317dd1e68e9154b0b38f364234d