|
| 1 | +# Mobile base localization configuration using fuse |
| 2 | +# Using 3D odometry model for wheel odometry-based pose estimation |
| 3 | +state_estimator: |
| 4 | + ros__parameters: |
| 5 | + # Fixed-lag smoother configuration |
| 6 | + optimization_frequency: 20.0 |
| 7 | + transaction_timeout: 0.01 |
| 8 | + lag_duration: 0.5 |
| 9 | + |
| 10 | + # Motion model for mobile base (3D omnidirectional) |
| 11 | + motion_models: |
| 12 | + mobile_base_motion: |
| 13 | + type: fuse_models::Omnidirectional3D |
| 14 | + |
| 15 | + mobile_base_motion: |
| 16 | + # Process noise for state variables |
| 17 | + # Order: x, y, z, roll, pitch, yaw, vx, vy, vz, vroll, vpitch, vyaw, ax, ay, az |
| 18 | + process_noise_diagonal: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 1.0, 1.0, 1.0] |
| 19 | + |
| 20 | + sensor_models: |
| 21 | + initial_localization_sensor: |
| 22 | + type: fuse_models::Omnidirectional3DIgnition |
| 23 | + motion_models: [mobile_base_motion] |
| 24 | + ignition: true |
| 25 | + wheel_odom_sensor: |
| 26 | + type: fuse_models::Odometry3D |
| 27 | + motion_models: [mobile_base_motion] |
| 28 | + |
| 29 | + initial_localization_sensor: |
| 30 | + publish_on_startup: true |
| 31 | + # Order: x, y, z, roll, pitch, yaw, vx, vy, vz, vroll, vpitch, vyaw, ax, ay, az |
| 32 | + initial_state: [0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0, 0.0] |
| 33 | + initial_sigma: [0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1, 0.1] |
| 34 | + |
| 35 | + wheel_odom_sensor: |
| 36 | + # Using /odom_reliable from QoS relay (bridges BEST_EFFORT to RELIABLE) |
| 37 | + topic: /odom_reliable |
| 38 | + queue_size: 10 |
| 39 | + # 2D position from wheels (no z) |
| 40 | + position_dimensions: ['x', 'y'] |
| 41 | + # Heading only |
| 42 | + orientation_dimensions: ['yaw'] |
| 43 | + # Forward velocity |
| 44 | + linear_velocity_dimensions: ['x'] |
| 45 | + # Turn rate |
| 46 | + angular_velocity_dimensions: ['yaw'] |
| 47 | + # Use relative constraints (pose changes rather than absolute poses) |
| 48 | + differential: true |
| 49 | + # Covariances - use large values for unused dimensions |
| 50 | + # Order: x, y, z, roll, pitch, yaw |
| 51 | + pose_covariance_diagonal: [0.05, 0.05, 1e9, 1e9, 1e9, 0.05] |
| 52 | + # Order: vx, vy, vz, vroll, vpitch, vyaw |
| 53 | + twist_covariance_diagonal: [0.05, 1e9, 1e9, 1e9, 1e9, 0.05] |
| 54 | + |
| 55 | + # Publish filtered odometry |
| 56 | + publishers: |
| 57 | + filtered_publisher: |
| 58 | + type: fuse_models::Odometry3DPublisher |
| 59 | + |
| 60 | + filtered_publisher: |
| 61 | + topic: 'odom_filtered' |
| 62 | + base_link_frame_id: 'base_footprint' |
| 63 | + base_link_output_frame_id: 'base_footprint' |
| 64 | + odom_frame_id: 'odom' |
| 65 | + map_frame_id: 'map' |
| 66 | + world_frame_id: 'odom' |
| 67 | + publish_tf: true |
| 68 | + publish_frequency: 10.0 |
| 69 | + predict_to_current_time: true |
0 commit comments