simultaneous localization and mapping
**Simultaneous localization and mapping (SLAM)** is the **joint estimation of agent pose and environment map in real time while both are initially unknown** - the system continuously improves localization using map features and improves the map using localization updates.
**What Is SLAM?**
- **Definition**: Probabilistic state-estimation framework that solves localization and mapping together.
- **Core Loop**: Pose estimate explains observations; observations update map; updated map refines pose.
- **Input Sensors**: Cameras, lidar, IMU, depth sensors, or multimodal fusion.
- **Outputs**: Trajectory, landmark map, and uncertainty estimates.
**Why SLAM Matters**
- **Autonomous Operation**: Enables robots to navigate without GPS in unknown environments.
- **Map Reuse**: Persistent mapping supports repeated missions and long-term autonomy.
- **Error Correction**: Loop closures reduce drift accumulated by local odometry.
- **System Integration**: Feeds planning, control, and obstacle avoidance modules.
- **AR Utility**: Provides spatial anchors for stable augmented overlays.
**SLAM Architecture**
**Front-End**:
- Extract features or scan matches and estimate local motion.
- Generate candidate landmarks and keyframes.
**Back-End Optimization**:
- Solve graph or bundle-adjustment problem over poses and landmarks.
- Refine globally with loop closure constraints.
**Map Management**:
- Maintain sparse or dense map representations.
- Prune and update landmarks over time.
**How It Works**
**Step 1**:
- Perform local motion estimation and associate observations with existing map elements.
**Step 2**:
- Optimize global pose-map graph periodically and apply loop closure corrections.
Simultaneous localization and mapping is **the core autonomy engine that lets machines build maps while using those same maps to know where they are** - robust SLAM remains central to real-world robotic intelligence.